Expert Group of programming

Change the wordpress admin menu label

Posted by : Heycode Tech | Posted in : admin customization, wordpress, WordPress Functions | Sep 12,2015 | 0 comments

Sometimes, we need to change the label of the admin menu as per our requirement. Here this article is describing, how to change the label name.

Here is the way to change the admin menu label. Here I ‘m providing an example to change the admin menu Label ‘Media’.
See here :


 * How to change the Menu Lable : Media = > Attached myImage
 function heycodetech_change_post_menu_label() {
    global $menu;
    global $submenu;
         * Here is the menu index : print_r($menu); 
	//print_r($menu);  //check the array index.
     $menu[10][0] = 'Attached myImage';
add_action( 'admin_menu', 'heycodetech_change_post_menu_label' );

Note : print_r($menu); it prints the menu index list and you can use this index list and assign the new menu name i.e label name.

Let me know if have any queried/suggestions.


Author information - Heycode Tech

Every world can ask question and my website registered user give the suggestion.

See all posts by Author

Connect to author

About us

Heycodetech is a platform where you can ask any questions related to the programming like PHP,jQuery, MYSQL,HTML , CSS and moreHere is the Expert group of programming.