is_product()); if( is_product() ){ $vars["id"] = get_the_ID(); $vars["path"] = get_page_uri(); } wp_localize_script( 'abp-popups-vars', 'AbpPopupsVars', $vars ); } $scripts = json_decode($scripts); // IMPORTANTE: CAMBIAR LA VERSION AL HACER CAMBIOS // $version = 1; foreach ($scripts as $script_url){ wp_enqueue_script( 'abprotector-popups', $script_url, array( 'jquery' ) ); } } } ?>