目前,我正在这样做:
劫持批量更新消息调整更新的计数插入我的文本具有0优先级的挂钩在代码中,其内容如下:
function my_cpt_info($messages) {
if (\'edit-my_cpt\' === get_current_screen()->id) {
global $bulk_counts;
$bulk_counts[\'updated\'] = 1;
if (! is_array($messages))
$messages = array();
$messages[\'my_cpt\'][\'updated\'] = \'Whatever it is that I need to explain about this post type, I just do it right here...<br>\';
return $messages;
}
} // function my_cpt_info
add_filter(\'bulk_post_updated_messages\', \'my_cpt_info\', 0);