Return to Snippet

Revision: 60816
at November 12, 2012 13:47 by ecksteing


Initial Code
function remove_menus () {
global $menu;
	$restricted = array(__('Links'), __('Tools'));
	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_menus');

Initial URL
http://eckstein.id.au/12713/wordpress/remove-dashboard-menu

Initial Description
This PHP removes menu items from the WordPress dashboard

Initial Title
Remove Dashboard Admin Menus in WordPress

Initial Tags
php, wordpress

Initial Language
PHP