In the code below, I think I messed up this part: if ( (1 || 2) != $current_user->ID ). Perhaps a misplaced bracket, I am not sure. I am not well-versed in PHP so I’m sure this is a simple error.
if ( (1 || 2) != $current_user->ID ) {
add_action('admin_menu', 'remove_menus_users');
}
If someone can help me out, I’d appreciate it.
The following corrections should solve your problem.