Support » Plugin: Menu Item Visibility Control » Different Menus for Different User Roles
4 years, 4 months ago
I have this plugin and tried it with “is_user_logged_in()” and it works great.
But, I don’t know how to write Conditions for what I need.
I have a Public Menu available to everyone.
I also want to reveal two additional menus based on User Role:
“Subscriber” sees Public menu and Subscriber menu.
“Contributor” sees Public, Subscriber, and Contributor menus (shown in Header, Sub-Header, and Footer).
Can someone help?
4 years, 3 months ago
Try this snippet:
it checks whether current user has the administrator role.