在函数中添加此代码。php,这会将帖子和产品标题更改为正在编辑的帖子或产品:
add_filter(\'admin_title\', \'my_admin_title\', 10, 2);
function my_admin_title($admin_title, $title)
{
global $post, $action;
if ( isset($post->post_title) and $action == \'edit\' ){
return \'Edit < \'.$post->post_title.\' - \'.get_bloginfo(\'name\');
} else {
return $title .\' - \' .get_bloginfo(\'name\');
}
}