Wordpress:全局禁用wptexturize

Max*_*Max 4 wordpress

我有一个标题为"Paper 10x10"的Wordpress页面.在我的侧边栏导航中,此页面显示为"纸张10×10"(请注意,x由Wordpress进行纹理化,因此x成为乘法符号×).

我安装了插件原始html插件.它只禁用wptexturizing the_content.但导航不在,the_content但在get_sidebar().

我试过remove_filter:

remove_filter('the_content', 'wptexturize');
remove_filter('the_excerpt', 'wptexturize');
Run Code Online (Sandbox Code Playgroud)

但这也只会禁用内容或摘录的纹理化.

如何wptexturize在Wordpress博客中全局禁用过滤器?

Nic*_*ick 11

您可以使用run_wptexturize过滤器全局禁用它,如下所述:

add_filter( 'run_wptexturize', '__return_false' );


win*_*nas 5

尝试:

remove_filter('the_title', 'wptexturize');
Run Code Online (Sandbox Code Playgroud)