Revision: 32569
Updated Code
at September 29, 2010 04:59 by fjarrett
Updated Code
// Remove Admin Menus function remove_menu_items() { global $menu; $restricted = array( __('Links'), __('Comments'), __('Media'), __('Plugins'), __('Tools'), __('Users') ); end ($menu); while (prev($menu)) { $value = explode(' ',$menu[key($menu)][0]); if(in_array($value[0] != NULL?$value[0]:"" , $restricted)){ unset($menu[key($menu)]); } } } add_action('admin_menu', 'remove_menu_items');
Revision: 32568
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at September 29, 2010 04:40 by fjarrett
Initial Code
// Remove Unwanted Admin Menu Items function remove_menu_items() { global $menu; $restricted = array( __('Links'), __('Comments'), __('Media'), __('Plugins'), __('Tools'), __('Users') ); end ($menu); while (prev($menu)) { $value = explode(' ',$menu[key($menu)][0]); if(in_array($value[0] != NULL?$value[0]:"" , $restricted)){ unset($menu[key($menu)]); } } } add_action('admin_menu', 'remove_menu_items');
Initial URL
Initial Description
Clean up your WordPress backend by removing unwanted admin menus that create clutter.
Initial Title
Remove Admin Menus
Initial Tags
wordpress
Initial Language
PHP