{"id":422,"date":"2011-06-15T17:36:53","date_gmt":"2011-06-16T03:36:53","guid":{"rendered":"http:\/\/mymonkeydo.com\/?p=422"},"modified":"2011-06-15T17:36:53","modified_gmt":"2011-06-16T03:36:53","slug":"wordpress-without-the-fat","status":"publish","type":"post","link":"https:\/\/mymonkeydo.com\/wordpress-without-the-fat\/","title":{"rendered":"WordPress CMS Plugins"},"content":{"rendered":"
To get rid of the menus on the dashboard for all roles except the admin place the following code in the functions.php of your theme.<\/p>\n
function remove_menus () {\n global $menu;\n if (!(current_user_can('install_themes'))) {\n $restricted = array(__('Dashboard'), __('Posts'), __('Media'), __('Links'), __('Pages'), __('Appearance'), __('Tools'), __('Users'), __('Settings'), __('Comments'), __('Plugins'));\n }\n else {\n return;\n }\n\tend ($menu);\n\twhile (prev($menu)){\n\t\t$value = explode(' ',$menu[key($menu)][0]);\n\t\tif(in_array($value[0] != NULL?$value[0]:\"\" , $restricted)){unset($menu[key($menu)]);}\n\t}\n}\nadd_action('admin_menu', 'remove_menus');<\/pre>\nThanks to http:\/\/www.wprecipes.com\/how-to-remove-menus-in-wordpress-dashboard<\/a><\/p>\n
Redirected Login<\/h2>\n
A problem that arises from this is the dashboard is pretty much useless. \u00a0You can use this plugin to redirect a user to a specific page based on their role: \u00a0http:\/\/wordpress.org\/extend\/plugins\/peters-login-redirect\/<\/a><\/p>\n
Easy TinyMCE adjustments<\/h2>\n