将帖子重命名为公文包
function litho_posts_portfolio() {
global $menu;
global $submenu;
$menu[5][0] = __("Portfolio", \'litho\');
$submenu[\'edit.php\'][5][0] = __("Portfolio", \'litho\');
$submenu[\'edit.php\'][10][0] = __("New Item", \'litho\');
echo \'\';
}
function litho_posts_portfolio_label() {
global $wp_post_types;
$labels = &$wp_post_types[\'post\']->labels;
$labels->name = __("Portfolio", \'litho\');
$labels->singular_name = __("Item", \'litho\');
$labels->add_new = __("New Item", \'litho\');
$labels->add_new_item = __("New Item", \'litho\');
$labels->edit_item = __("Edit Item", \'litho\');
$labels->new_item = __("Item", \'litho\');
$labels->view_item = __("View Item", \'litho\');
$labels->search_items = __("Search Portfolio", \'litho\');
$labels->not_found = __("No Item Found", \'litho\');
$labels->not_found_in_trash = __("No Item found in Trash", \'litho\');
}
add_action( \'init\', \'litho_posts_portfolio_label\' );
add_action( \'admin_menu\', \'litho_posts_portfolio\' );