Wordpress: disable wptexturize globally

Wordpress: disable wptexturize globally

I have a Wordpress page with the title "Paper 10x10". In my sidebar navigation this page is displayed as "Paper 10×10" (note that the x is texturized by Wordpress and therefor the x became a multiplication sign ×).

I have the plugin raw html plugin installed. It only disables wptexturizing for the_content. But the navigation is not in the_content but in get_sidebar().

I tried remove_filter:

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

But this also only disables texturizing for the content or the excerpt.

How can I disable the wptexturize filter globally in my Wordpress blog?

“Unable to load dynamic library” on WordPress blogs error log?


How do you add a WordPress admin page without adding it to the menu?
Try:. Make WordPress homepage a post category?
remove_filter('the_title', 'wptexturize'); 
Is it possible to build an editable (in wp-admin) drop down menu in Wordpress?Wordpress Plugin Development: send query string parameters


Wordpress, change language_attributes to return dir=rtl
I went to /wp-includes/default-filters.php and looked for everything affected by wptexturize, and did a foreach in the same style default-filters.php uses to add filters.. Wordpress: is child of category function Your problem seems to have been solved, although others might eventually want the complete purge, so I'm posting it here, it being the first question to come up when searching for wptexturize:. Catch all Wordpress exceptions?
$filters_to_remove = array(   'comment_author', 'term_name', 'link_name', 'link_description', 'link_notes', 'bloginfo', 'wp_title', 'widreceive _title',   'single_post_title', 'single_cat_title', 'single_tag_title', 'single_month_title', 'nav_menu_attr_title', 'nav_menu_description',   'term_description',   'the_title', 'the_content', 'the_excerpt', 'comment_text', 'list_cats' );  foreach ($filters_to_remove as $a_filter){   remove_filter($a_filter, 'wptexturize'); } 


You must disable it globally with the run_wptexturize filter, as detailed here:. add_filter( 'run_wptexturize', '__return_false' );.

50 out of 100 based on 35 user ratings 510 reviews