Skip Navigation

[Resolved] Menu access control by user roles

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.

Our next available supporter will start replying to tickets in about 0.66 hours from now. Thank you for your understanding.

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+00:00)

This topic contains 1 reply, has 2 voices.

Last updated by Jamal 3 years, 11 months ago.

Assisted by: Jamal.

Author
Posts
#1626035

Menu access control by user roles

Hello,

I would like to know how to control access to the website menus by user role, with the Toolset settings, or by code. If it is possible only with code, can you give me a direction?

Here is an example of functionality found in another plugin:
hidden link

I'm waiting

Thank you

#1626327

Jamal
Supporter

Languages: English (English ) French (Français )

Timezone: Africa/Casablanca (GMT+00:00)

Hello and thank you for contacting the Toolset support.

Toolset plugins have no effect on the WordPress menus. To conditionally display menus for users based on their roles, you will need to use a plugin such as the one you mentioned or similar:
- https://wordpress.org/plugins/nav-menu-roles/
- https://wordpress.org/plugins/user-menus/

Or you will need to create custom code. Check this example where a different menu is displayed for each role https://stackoverflow.com/questions/39701323/wordpress-menu-depending-on-user-role

I hope this helps. Let me know your feedback.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.