I’m trying to hide some admin menu items for a custom role using the steps from this article:
Block WordPress Admin Menu Items
I opened the “Admin menu” for that role, selected the menu items I want to hide, and clicked “Update”. However, when I log in with a user that has only this custom role, all of the menu items are still visible.
Steps:
1. Go to Users → User Role Editor.
2. Select the custom role.
3. Open “Admin menu”.
4. Tick the menu items to block.
5. Click “Update” and save.
6. Log in as a user with that custom role and open the dashboard.
Expected result:
The selected menu items should be hidden for this custom role.
Actual result:
All menu items are still visible for this custom role.
Could you please advise what might prevent the admin menu restrictions from applying to this role (e.g. additional roles, required capabilities, or a setting I may have missed)?