Title: dequeue codes
Last modified: March 13, 2023

---

# dequeue codes

 *  Resolved [Mauro Vicariotto](https://wordpress.org/support/users/mrosfy/)
 * (@mrosfy)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/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

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [SilkyPress](https://wordpress.org/support/users/diana_burduja/)
 * (@diana_burduja)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/dequeue-codes/#post-16553389)
 * Mauro,
 * if you need to customize the plugin, please consider hiring a developer to help
   you out.
 *  Thread Starter [Mauro Vicariotto](https://wordpress.org/support/users/mrosfy/)
 * (@mrosfy)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/dequeue-codes/#post-16553669)
 * 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.

 * ![](https://ps.w.org/custom-css-js/assets/icon-128x128.png?rev=1303730)
 * [Simple Custom CSS and JS](https://wordpress.org/plugins/custom-css-js/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-css-js/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-css-js/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-css-js/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-css-js/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-css-js/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Mauro Vicariotto](https://wordpress.org/support/users/mrosfy/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/dequeue-codes/#post-16553669)
 * Status: resolved