-
-
加到主题的 functions.php 里面:
add_filter('the_content', function( $content ) { return strip_tags( $content, '<p><br><img>' ); }, 9999 );
-
求文章内过滤html无用的标签代码或插件
寻求帮助 / 47 / 1 / 发布于 2022-6-10 07:36:13 / 活跃于 2022-06-10 11:03:31
寻求帮助 / 47 / 1 / 发布于 2022-6-10 07:36:13 / 活跃于 2022-06-10 11:03:31
加到主题的 functions.php 里面:
add_filter('the_content', function( $content ) {
return strip_tags( $content, '<p><br><img>' );
}, 9999 );