WC_Site_Tracking::register_scripts()
Register scripts required to record events from javascript.
Method of the class: WC_Site_Tracking{}
No Hooks.
Return
null
. Nothing.
Usage
$result = WC_Site_Tracking::register_scripts();
WC_Site_Tracking::register_scripts() WC Site Tracking::register scripts code WC 7.5.1
public static function register_scripts() { wp_register_script( 'woo-tracks', 'https://stats.wp.com/w.js', array( 'wp-hooks' ), gmdate( 'YW' ), false ); }