You appear to be a bot. Output may be restricted
Description
Load the heartbeat scripts
Usage
$array = EDD_Heartbeat::enqueue_scripts();
Parameters
Returns
array
Source
File name: easy-digital-downloads/includes/admin/class-edd-heartbeat.php
Lines:
1 to 10 of 10
public static function enqueue_scripts() { if( ! current_user_can( 'view_shop_reports' ) ) { return; // Only load heartbeat if current user can view show reports } // Make sure the JS part of the Heartbeat API is loaded. wp_enqueue_script( 'heartbeat' ); add_action( 'admin_print_footer_scripts', array( 'EDD_Heartbeat', 'footer_js' ), 20 ); }