How to Change the Admin Menu Names in WordPress

The following will change, “Posts” to “Blog Posts” in the WordPress backend. I find this useful when creating sites for Clients. Sometimes the out-of-the-box naming convention for WordPress needs a little tweaking for the non power user. Simply add this function to your theme’s function.php file.

function change_post_menu_label() {
    global $menu;
    global $submenu;
    $menu[5][0] = 'Blog Posts';
    $submenu['edit.php'][5][0] = 'Blog Posts';
    $submenu['edit.php'][10][0] = 'Add a Blog Post';
    echo '';
}
add_action( 'admin_menu', 'change_post_menu_label' );

Leave a Reply

Your email address will not be published. Required fields are marked *

21 + = 25