?? How To: Hide the Snippets plugin from admin menu for specific users????
-
I need to know how to hide the ‘snippets’ menu item that’s created by the ‘Code Snippets’ plugin so that my developer can not change any code I make there.
I tried this but it doesnt work.
function hide_menu(){
global $current_user;
$user_id = get_current_user_id();
// echo “user:”.$user_id; // Use this to find your user id quicklyif(is_admin() && $user_id == ‘2638’){
remove_submenu_page( ‘admin.php’, ‘php?page=snippets’ );}
}
- The topic ‘?? How To: Hide the Snippets plugin from admin menu for specific users????’ is closed to new replies.