parent
41ff8ec073
commit
7a7f33f2a1
|
@ -95,6 +95,11 @@ class WC_Site_Tracking {
|
|||
*/
|
||||
public static function add_enable_tracking_function() {
|
||||
global $wp_scripts;
|
||||
|
||||
if( ! isset( $wp_scripts->registered['woo-tracks'] ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$woo_tracks_script = $wp_scripts->registered['woo-tracks']->src;
|
||||
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue