Title: Conditional De-Register Scripts?
Last modified: August 21, 2016

---

# Conditional De-Register Scripts?

 *  [sagive](https://wordpress.org/support/users/sagive/)
 * (@sagive)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/conditional-de-register-scripts/)
 * i tried using “wp_deregister_script” to conditionly deregister
    un-needed JS 
   files in page i dont need them – but as for now its a no-go
 * i also tried remove_action to filter out
    actions attached to wp_footer & wp_head
   But that was also a no-go…
 * Can anyone (best if the plugin author)
    help in the how to deregister this plugin
   script where the are not needed… ??
 * Best regards, Sagive
 * [http://wordpress.org/plugins/syntaxhighlighter/](http://wordpress.org/plugins/syntaxhighlighter/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [sagive](https://wordpress.org/support/users/sagive/)
 * (@sagive)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/conditional-de-register-scripts/#post-4493219)
 * Just to add… i know how to use “wp_deregister_script”
    That is not the issuse…
 * Its specific to this plugin

Viewing 1 replies (of 1 total)

The topic ‘Conditional De-Register Scripts?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/syntaxhighlighter_ffffff.svg)
 * [SyntaxHighlighter Evolved](https://wordpress.org/plugins/syntaxhighlighter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/syntaxhighlighter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/syntaxhighlighter/)
 * [Active Topics](https://wordpress.org/support/plugin/syntaxhighlighter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/syntaxhighlighter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/syntaxhighlighter/reviews/)

## Tags

 * [conditional](https://wordpress.org/support/topic-tag/conditional/)

 * 1 reply
 * 1 participant
 * Last reply from: [sagive](https://wordpress.org/support/users/sagive/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/conditional-de-register-scripts/#post-4493219)
 * Status: not resolved