Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

The following code will rename the "Posts" menu item to "Blog Posts" in the WordPress Dashboard:

function lc_change_post_menu_label() {
global $menu;
$menu[5][0] = 'Blog Posts';

}
add_action( 'admin_menu', 'lc_change_post_menu_label' );

Works fine, and all is well. Problem is, I want to target other menu items, for example I want to rename "Pages" to "Site Pages". Is there a list somewhere that contains the index number for all WP admin menu items? var_dump isn't helping and I don't have a lot of time to waste since I've already wasted almost two hours of trial and error, trying to target these silly things.

share|improve this question

1 Answer 1

So after a whole bunch of digging I found what I was looking for near the bottom of this page:

http://codex.wordpress.org/Function_Reference/add_menu_page#Examples

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.