/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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>'; */ if ( !current_user_can('manage_options') ) { unset( $menu[75] ); } //key 75 is tools ... but only for non super admins }