The Admin Menu Hide function allows you to hide specific admin menu items from the WordPress admin panel. This is useful for simplifying the admin interface for clients or restricting access to sensitive configuration areas.
This function targets Voxel-specific admin menu items that you may want to hide from certain users or simplify the admin experience. Currently supports hiding the Structure (Post Types) and Membership configuration pages.
After enabling the function, you can select which menus to hide:
| Menu Option | Description | URL Hidden |
|---|---|---|
| Structure (Post Types) | Hides the Voxel Post Types configuration page | admin.php?page=voxel-post-types |
| Membership | Hides the Voxel Membership configuration page | admin.php?page=voxel-membership |
When building sites for clients, you may want to hide complex configuration areas to prevent accidental changes to the site structure.
For sites with multiple administrators, hiding menus they don’t need access to creates a cleaner, more focused admin interface.
Agencies can hide structural configuration menus on client sites while maintaining access through other means if needed.
The function uses multiple methods to ensure menus are hidden reliably:
remove_menu_page() functionadmin_init for secondary removalNote: Hiding a menu does not remove the underlying functionality. Users with direct URLs can still access the pages. For complete access control, use WordPress user role capabilities.
If you need to access a hidden menu:
/wp-admin/admin.php?page=voxel-post-types)