Posted by KaiseRCrazY on 7th February 2010
Remove menus in Dashboard!
You can remove WordPress Dashboard’s menus with easy code. Just install this code into your theme’s functions.php and use like this. You can use this code for your clients Dashoards. Lets Begin…
Here is the code;
function remove_menus () {
global $menu;
$restricted = array(__('Dashboard'), __('Posts'), __('Media'), __('Links'), __('Pages'), __('Appearance'), __('Tools'), __('Users'), __('Settings'), __('Comments'), __('Plugins'));
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');
- Wordpress
Filed Under
This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.
-
Categories
Colored Tags
else sidebar category comment Functions blog categories Wordpress RSS author mysql plugin article function template style.css robots spiders image if funcitons feed theme comments Loop header.php site Google title code Widget comments.php Facebook posts no-index hide post content functions.php time css index.php Yahoo javascript single.phpRecent Comments
Archives
Blogroll
Google Ads















Made by Symmetric Web
Distributed by Smashing Magazine
No comments yet!