Welcome to the official GitHub repository for "Menu By User Roles," the ultimate WordPress plugin for custom menu management based on user roles.
- Multiple user role selection - Support for assigning multiple roles to a single menu item.
- Block Editor (Gutenberg) support - Full compatibility with WordPress block navigation.
- Unauthenticated user targeting - Specifically show/hide menus for logged-out visitors.
- Dynamic role detection - Automatically detects all available user roles in your WordPress site.
- Secure implementation - Built with WordPress security best practices and nonce verification.
- Conflict-free operation - Namespaced to avoid conflicts with other plugins using Select2.
- Download the plugin as a ZIP file from Here.
- Log in to your WordPress admin panel.
- Navigate to
Plugins>Add New. - Click the
Upload Pluginbutton and select the ZIP file you downloaded. - Activate the plugin.
- After activating the plugin, go to the
Appearance>Menussection in your WordPress dashboard. - Edit a menu item and you will find a new option to assign user roles.
- Choose the desired user roles for the menu item.
- Save the menu.
Here is an example of a menu item with user role selection options.
Example of a menu item with user role selection options in block navigation.
Contributions are welcome! Feel free to open an issue or submit a pull request.
This project is licensed under the GNU General Public License v2 or later.

