Can I edit the header menu in order to show different items depending if your are not logged in, logged in as a partner or logged in as a customer?
I know I can change them form the Dashboard in My Account section, but it's pretty hard to figure it out as an user, so I would like to change the header menu.
For example, if you are already a registered partner, I would like the 'Register as a Partner' option to disappear. Or if you are logged in as a tourist, I would like sections like 'Manage Accommodations' to disappear.
Hi,
Can I edit the header menu in order to show different items depending if your are not logged in, logged in as a partner or logged in as a customer?
I know I can change them form the Dashboard in My Account section, but it's pretty hard to figure it out as an user, so I would like to change the header menu.
For example, if you are already a registered partner, I would like the 'Register as a Partner' option to disappear. Or if you are logged in as a tourist, I would like sections like 'Manage Accommodations' to disappear.
Thank you.
Hi Vlad,
I believe you can use the following plugin to achieve role-based menu control:
https://wordpress.org/plugins/nav-menu-roles/
Best regards,
themeenergy support
Great, thanks.
Can you also point me to the source code that handles menus/accounts? If there is something specific.
Hi,
Menus are registered in includes/theme_actions.php from line 242 onwards.
Best regards,
themeenergy support