WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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


share|improve this answer

Your Answer


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.