Expert Group of programming
Loading...

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 :

dashboard-e280b9-corporate-law-reporter-e28094-wordpress-2015-07-15-12-32-40

<code>
/*
 * 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' );
</code>

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.

Tags:

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.