Revision: 44034
Updated Code
at April 5, 2011 07:22 by coryschadt
Updated Code
add_action( 'admin_menu', 'custom_admin_menu' ); function custom_admin_menu() { global $menu; /* echo '<pre>'; var_dump($menu); // use this to identify the key for the menu item you want to remove echo '</pre>'; */ unset( $menu[5] ); //key 5 is posts unset( $menu[15] ); //key 15 is links unset( $menu[25] ); //key 25 is comments if ( !current_user_can('manage_options') ) { unset( $menu[75] ); } //key 75 is tools ... but only for non super admins }
Revision: 44033
Updated Code
at April 5, 2011 06:53 by coryschadt
Updated Code
add_action( 'admin_menu', 'custom_admin_menu' ); function custom_admin_menu() { global $menu; /* echo '<pre>'; var_dump($menu); // use this to identify the key for the menu item you want to remove echo '</pre>'; */ unset( $menu[5] ); //key 5 is posts unset( $menu[15] ); //key 15 is links unset( $menu[25] ); //key 25 is comments if ( !current_user_can('manage_options') ) { unset( $menu[75] ); } //key 75 is tools ... but only for non super admins }
Revision: 44032
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at April 5, 2011 06:48 by coryschadt
Initial Code
<?php function remove_dashboard_widgets() { global $wp_meta_boxes; unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']); unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments']); unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']); unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']); unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now']); unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']); } add_action('wp_dashboard_setup', 'remove_dashboard_widgets' ); ?>
Initial URL
Initial Description
Initial Title
Wordpress - Remove stuff from Dashboard
Initial Tags
wordpress
Initial Language
PHP