Admin Menu keys
-
how do you find out what admin menu keys have been used?
I want to rename an Admin menu label, I know posts use [5] and post submenu category uses [15] but how do find what others use so I can rename them using a functions global rename.
<?php function wd_admin_menu_rename() { global $menu; // Global to get menu array global $submenu; // Global to get submenu array $menu[5][0] = 'Portfolio'; // Change name of posts to portfolio $submenu['edit.php'][5][0] = 'All Portfolio Items'; // Change name of all posts to all portfolio items } add_action( 'admin_menu', 'wd_admin_menu_rename' );
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Admin Menu keys’ is closed to new replies.