• 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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Diana Burduja

    (@diana_burduja)

    Mauro,

    if you need to customize the plugin, please consider hiring a developer to help you out.

    Thread Starter Mauro Vicariotto

    (@mrosfy)

    Diana,

    I have no intention to customize your plugin, 1) for respect vs you 2) because if I’d have to invest time to customize what is already done I’d create a plugin by myself (but I have to follow my activities and I don’t have time) … I just wanted to create an external php statement leaving the plugin intact

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘dequeue codes’ is closed to new replies.