Answers:
为了仅更改特定的自定义帖子类型,这是我们的操作方法:
/* edit the admin page title for a particular custom post type */
function edit_page_title() {
global $post, $title, $action, $current_screen;
if( isset( $current_screen->post_type ) && $current_screen->post_type == 'CUSTOM-POST-TYPE' && $action == 'edit' ) {
/* this is the new page title */
$title = 'Change to whatever you want: ' . $post->post_title;
} else {
$title = $title .' - ' .get_bloginfo('name');
}
return $title;
}
add_action( 'admin_title', 'edit_page_title' )