Last active
November 1, 2018 23:23
-
-
Save johnalarcon/3d6d2cdd68399c9e2023c2fedb2490c4 to your computer and use it in GitHub Desktop.
Change core WP post item labels
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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