Page ID & wp_dequeue_script
-
One of the plugins I’m using is adding a very large js file to every page. Only 7 pages should be loading the script. I’m thinking
$page_id=page_id();
$page_array=array(##,##,##);
if(!in_array($page_id,$page_array)){
wp_dequeue_script($handle);
}for my functions file. I have no idea how to get the page id. Any help?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.