wp_enqueue_script conflict with Polylang
-
I use this code in my functions.php to load an external script. This script requires GET paramaters. The code in the functions.php is:
wp_enqueue_script( 'scriptx', 'https://xxxxxxx.xxx.xx/xxx/widget/?widgetid=xxxxx&language=xx&companyid=xxxxxxxxxxxxxxxxxxxxx',array('jquery') );
This works fine if Polylang is disabled. When I activate Polylang then the script will still be loaded, but it no longer process the GET parameters language an companyid. It looks that Polylang change the URL. Can I prevent it?
- The topic ‘wp_enqueue_script conflict with Polylang’ is closed to new replies.