wp编辑器关闭smat quote功能实现 引用号正常

wp自带编辑器有smart quote功能, 要关闭wptexturize。 WordPress 使用 wptexturize()函数 转换 ' 到 ’, ‘, 或取决于上下文的其他实体. 比方说会将let’s 转换成 let’ s 符号后面有空格符号形式也会转变, 所以要在钩子中去除掉这个函数

remove_filter('the_content', 'wptexturize');
remove_filter('the_title', 'wptexturize');
remove_filter('the_excerpt', 'wptexturize');
×
wp编辑器关闭smat quote功能实现 引用号正常

wp编辑器关闭smat quote功能实现 引用号正常

wp自带编辑器有smart quote功...

查看更多

PHP新手开发教程-OOP基础全掌握

PHP 中的面向对象编程 (O …