Skip to content

Instantly share code, notes, and snippets.

@johnalarcon
Last active November 1, 2018 23:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnalarcon/3d6d2cdd68399c9e2023c2fedb2490c4 to your computer and use it in GitHub Desktop.
Save johnalarcon/3d6d2cdd68399c9e2023c2fedb2490c4 to your computer and use it in GitHub Desktop.
Change core WP post item labels
add_action('admin_menu', 'change_admin_menu_for_editors');
function change_admin_menu_for_editors() {
global $menu;
global $submenu;
// Update labels for Posts menu items.
$menu[5][0] = __('Blog Articles', 'my-text-domain');
$submenu['edit.php'][5][0] = __('All Articles', 'my-text-domain');
$submenu['edit.php'][10][0] = __('Add New Article', 'my-text-domain');
$submenu['edit.php'][15][0] = __('Blog Categories', 'my-text-domain');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment