admin管理员组文章数量:1389975
In my Custom Post Type (CPT), I altered the display of the post title using the method mentioned here. But for my custom use case, I need to pass some HTML like <sup></sup>
. But by default WP List Table class is designed to suppress any HTML tags using wp_strip_all_tags()
.
But I can see there might be a provision accepting user-defined functions using PHP's call_user_func()
, but doesn't have any idea on how to do that.
I want to accept certain HTML tags using wp_kses()
to the titles of my CPT in a certain use case like below:
My Title2
Can it be possible?
本文标签: wp ksesAccepting certain HTML tags in WP List Table column data
版权声明:本文标题:wp kses - Accepting certain HTML tags in WP List Table column data 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744744673a2622810.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论