Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

Pete on "How to rename the admin sub menu name of a custom post 'category' or 'tag'"

$
0
0

I have a custom post type called Suburbs. It appears in the admin menu. like a normal post there are 4 sub menus...
1. Suburbs
2. Add new
3. Categories
4. Tags

I want to rename the 'Categories' and/or the 'Tags' sub menu. I have this code but I can't figure out how to adapt it to a CT or the Category/Tag sub menus?

function wptutsplus_change_post_menu_label() {
    global $menu;
    global $submenu;
    $menu[5][0] = 'News';
    $submenu['edit.php'][5][0] = 'News Items';
    $submenu['edit.php'][10][0] = 'Add News Item';
}
add_action( 'admin_menu', 'wptutsplus_change_post_menu_label' );

Viewing all articles
Browse latest Browse all 8245

Trending Articles