Have you ever needed to hide a specific admin menu from other users in WordPress? Maybe you want to hide the Plugins and Appearance menus to keep your users out of trouble. Just place the below code in your themes functions.php file to hide the Plugins menu from all users except for admin:
As another example lets say we want to hide the Links menu from all users that aren’t administrators in WordPress. The below code would do just that:
This is a pretty simple method of hiding menus in the WordPress admin dashboard. Enjoy!