WordPress 允许分类描述添加 html 代码
解决方法
直接将下面的代码添加到当前主题的 functions.php 文件即可:
<?php
/**
* 允许分类描述添加html代码
*/
remove_filter('pre_term_description', 'wp_filter_kses');
remove_filter('term_description', 'wp_kses_data');
?>
解决方法
直接将下面的代码添加到当前主题的 functions.php 文件即可:
<?php
/**
* 允许分类描述添加html代码
*/
remove_filter('pre_term_description', 'wp_filter_kses');
remove_filter('term_description', 'wp_kses_data');
?>