Skip to content

Instantly share code, notes, and snippets.

@petenelson
Created February 13, 2014 14:49
Show Gist options
  • Save petenelson/8976283 to your computer and use it in GitHub Desktop.
Save petenelson/8976283 to your computer and use it in GitHub Desktop.
WordPress: Rename submenu items
// from: http://code.tutsplus.com/articles/customizing-your-wordpress-admin--wp-24941
// bookmarking it for later
function edit_admin_menus() {
global $menu;
global $submenu;
$menu[5][0] = 'Recipes'; // Change Posts to Recipes
$submenu['edit.php'][5][0] = 'All Recipes';
$submenu['edit.php'][10][0] = 'Add a Recipe';
$submenu['edit.php'][15][0] = 'Meal Types'; // Rename categories to meal types
$submenu['edit.php'][16][0] = 'Ingredients'; // Rename tags to ingredients
}
add_action( 'admin_menu', 'edit_admin_menus' );
@EdisonLazar
Copy link

how can i rename products and its submenu items in dashboard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment