Tuesday, July 9, 2013

How to disable automatic formatting in WordPress

This code snippet will disable automatic formatting in your WordPress website, you need just to add php code on your functions.php file in your active theme.

remove_filter('the_content', 'wptexturize');
remove_filter('the_excerpt', 'wptexturize');
remove_filter('comment_text', 'wptexturize');
remove_filter('the_title', 'wptexturize');

wptexturize function is responsible for lots of automatic alterations to text stored in WordPress like automatic elipses (...), em and en dashes, typographers quotes, etc.
Disqus Comments