WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a plugin which is great but it's kind of aggressive, and it changes a lot more than it should (but there are no settings to fix this).

I have a custom page template that calls wp_head('less') ... header-less.php, and i have an equivalent for footer-less.php.

I basically want, in this custom header-less.php to DE-REGISTER the plugin immediately after it gets registered.

note that i dont want to DeACTIVATE the plugin, because i really need the functionality on the other page templates, only on this certain template do I want to basically 'destroy' the plugin or deactivate it somehow

share|improve this question
Usually, you can tell WordPress which hooks/filters to remove... what plugin are you using and what functionality are you trying to disable in this template? – EAMann Jun 4 '12 at 22:37
pastie.org/4028253 - it's called trueEdit. It basically removes all of wordpress's annoying autoformatting options. The problem is it removes the helpful ones too. So really I want to only have the plugin load on a certain page template (where i will be copying and pasting html anyway). – Tallboy Jun 4 '12 at 22:40
or rather... id like to de-register that plugin via unregistering the hook or whatever i need to do – Tallboy Jun 4 '12 at 22:41
A similar question, unanswered: wordpress.stackexchange.com/questions/24710/… :( – getWeberForStackExchange Jun 4 '12 at 22:56
:( so... yeah, i hope someone knows – Tallboy Jun 4 '12 at 23:12
up vote 1 down vote accepted

A quick glance at that plugin shows that it loads the filters from an option, trueedit_options. You might be able to add a filter to option_trueedit_options and check the context of when that option is being loaded and return an empty array. It runs on init though, so not sure how you'd determine that.

Another option is to add the filters back on in your header file. If you look in /wp-includes/default-filters.php you'll see all of the filters that are added to the content which could potentially be removed by the plugin:

add_filter( 'the_content', 'wptexturize'        );
add_filter( 'the_content', 'convert_smilies'    );
add_filter( 'the_content', 'convert_chars'      );
add_filter( 'the_content', 'wpautop'            );
add_filter( 'the_content', 'shortcode_unautop'  );
add_filter( 'the_content', 'prepend_attachment' );
share|improve this answer
awesome! Thanks!! – Tallboy Jun 5 '12 at 0:39

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.