How can I reliably and globally disable wptexturize?

Plugins will be able to re-enable any filter you have switched off, if they do so after you are finished. So the trick is to make sure you are the last one to do something with this filter by setting a high number, low priority on it.

add_filter( 'run_wptexturize', '__return_false', 9999 );

Leave a Comment