Skip Navigation

[Resolved] Using Access Control to hide admin menu items

This thread is resolved. Here is a description of the problem and solution.

Problem:
The user would like to display different items in the admin menu for different kinds of users.

Solution:
Actually, Toolset Acces does not affect the WordPress admin menus. Depending on the user role, WordPress will display the allowed menu items.
I would suggest installing a 3rd party plugin that allows customizing the admin menus without needing to touch the roles, such as:
- https://wordpress.org/plugins/admin-menu-editor/

Or you can add a custom PHP code to deactivate those menu items for a certain role or user. Check these articles
- https://code.tutsplus.com/articles/customizing-the-wordpress-admin-custom-admin-menus--wp-33200
- https://jasonyingling.me/removing-items-from-the-wordpress-admin-bar/

This support ticket is created 3 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9:00 – 13:00
14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 - - 14:00 – 18:00

Supporter timezone: Africa/Casablanca (GMT+01:00)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by barryG-4 3 years, 11 months ago.

Assisted by: Jamal.

Author
Posts
#1866371
Screenshot 2020-12-05 at 15.43.57.png

Tell us what you are trying to do? I have just finished a site and am about to hand it over to a client but there are three menu items that I don't want her to see. They are Templates (Elementor), Gutenberg and WP Portfolio. I can't see anywhere in Toolset Access where I can stop these showing and I don't want to install another role editing plugin in case it stops Toolset Access from working. Is there something I can do to fix this issue please?

Is there any documentation that you are following? Tried google but can't find anything.

Is there a similar example that we can see? Screenshot attached.

What is the link to your site? hidden link

#1866729

Hello and thank you for contacting the Toolset support.

Actually, Toolset Acces does not affect the WordPress admin menus. Depending on the user role, WordPress will display the allowed menu items.
I would suggest installing a 3rd party plugin that allows customizing the admin menus without needing to touch the roles, such as:
- https://wordpress.org/plugins/admin-menu-editor/

Or you can add a custom PHP code to deactivate those menu items for a certain role or user. Check these articles
- https://code.tutsplus.com/articles/customizing-the-wordpress-admin-custom-admin-menus--wp-33200
- hidden link

I hope this helps. Let me know if you have any questions.

#1869727

My issue is resolved now. Thank you!