Hide admin menu items on a WordPress site

Posted by .

This code hides the admin menu items for all users that don’t have the ‘manage_sites’ capability.

On multisite that would mean only Super Admins can look at those menu items.

This script only removes the menu items (so users can still look at the page if they know the path) but it de-clutters the admin somewhat, making it a little easier on beginners.

Comments are closed.