Hide Admin Menu for Specific User ID who has administrator Role

problem is with your logical statement.
now you are trying to remove dashboard staff where user id is not ‘279’, which means only user id 279 can see dashboard.
you can try this in if statement

if(is_admin() && $user_id == '279'){ //your codes }

Leave a Comment