在 wp-include 文件夹下的 kses.php 中搜索 $allowedposttags,这是个不过滤标签组成的数组,里面所列即是不过滤的标签集合。
假如你发表文章时带有iframe标签,又不想被不过滤,可在 $allowedposttags 中添加下面语句:
'iframe' => array(
'src' => true,
'width' => true,
'height' => true,
'frameborder' => true,
'allowfullscreen' => true,
),

本文为原创文章,著作权归作者所有:来自「KOBIN 技术随笔」作者的原创作品,转载请标明出处。
WordPress 后台发布文章 iframe 标签被自动过滤
https://blog.kobin.cn/blog/program/p2/211.html
WordPress 后台发布文章 iframe 标签被自动过滤
https://blog.kobin.cn/blog/program/p2/211.html