admin管理员组文章数量:1130349
I am having a trouble in disabling formatting for specific shortcode. For example, I have:
[MyTag]"hi"[/MyTag]
However, the output is “hi“ (note the formatted quotes). I want to disable any kind of formatting (and keep untouched) everything for that shortcode. But the below:
remove_filter('the_content', 'wpautop');
remove_filter('the_content', 'wptexturize');
remove_filter('the_content', 'convert_chars');
completely removes formatting from content and all other shortcodes. I ONLY want to affect [MyTag] shortcodes only. How can i achieve that?
I am having a trouble in disabling formatting for specific shortcode. For example, I have:
[MyTag]"hi"[/MyTag]
However, the output is “hi“ (note the formatted quotes). I want to disable any kind of formatting (and keep untouched) everything for that shortcode. But the below:
remove_filter('the_content', 'wpautop');
remove_filter('the_content', 'wptexturize');
remove_filter('the_content', 'convert_chars');
completely removes formatting from content and all other shortcodes. I ONLY want to affect [MyTag] shortcodes only. How can i achieve that?
本文标签: How can I disable(remove) wpautop (wptexturizeconvertchars) for specific shortcodes only
版权声明:本文标题:How can I disable(remove) wpautop (wptexturize, convert_chars) for specific shortcodes only? 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749035157a2306281.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论