Remove_Filter on Specific Page
-
Hey All-
I’ve got a theme that isn’t using the standard wpautop or wptexturize.
In the functions.php file the author set up their own version, as indicated with:
add_filter('the_content', 'pp_formatter', 99); add_filter('widget_text', 'pp_formatter', 99);I am trying the get rid of these filters on one page only, page id 25.
The code I have written is:
//Remove AutoP from Contact Page if (!is_page (25)) { remove_filter('the_content', 'pp_formatter', 100); remove_filter('widget_text', 'pp_formatter', 100); }This doesn’t seem to be working. Any pointers? Thanks.
Edit: spelling
The topic ‘Remove_Filter on Specific Page’ is closed to new replies.