dequeue codes |

Hi Diana,

as concluded a couple of dd ago, I’m using your plugin in this way:

for global codes (the ones to be embedded everywhere) no change

for codes of specific pages I leave the plugin enqueues everywhere, then trying to dequeue from all pages apart the one needed .. but I see that you enqueued with “admin-head” instead of “wp-enqueue”, so I need your help. I’m adding a php block to functions.php:

function ABC() {
wp_dequeue_script( ‘xx’ ); // (or wp-deregister_script, or both?)
add_action( ‘YYY’, ‘ABC‘, 100 );

What about the action hook? (‘YYY’): ‘admin-head’ or ‘admin-enqueue-scripts’ or ‘wp-print-scripts’ or ‘wp-enqueue-scripts’?

Ask you because I tried in several ways but the common method is not working in my trials. Thank you again. Mauro


This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer