没有可用的操作和筛选器挂钩来修改分类法元框html,如admin\\u post\\u thumbnail\\u html。所以这里有一个技巧,可以在类别下面添加描述。您必须创建新的metabox以获取帮助,然后移动到category div。
# Add new meta box for help description
add_action( \'add_meta_boxes\', \'add_help_desc_meta_box\', 0 );
function add_help_desc_meta_box() {
global $wp_meta_boxes;
add_meta_box(\'description-help-desc-meta-box\',__(\'Categories Help Description\'),\'description_meta_box_callback\',\'post\',\'side\',\'low\');
}
# here you can add your description
function description_meta_box_callback()
{
echo "<p>Here is your description</p>";
}
#you can append your help desc meta box to category
function cat_help_description_meta_box_move() {
?>
<script>
(function($) {
$(function(){
$(\'#description-help-desc-meta-box\').find(\'.inside\').appendTo(\'#categorydiv\').end().end().remove();
});
})(jQuery);
</script>
<?php
}
add_action( \'admin_head\', \'cat_help_description_meta_box_move\' );
如果这对你有帮助,请告诉我!