Thanks.
I understand that some roles may include others. But if I want to target a menu as visible only to two different user roles that do not encompass the other, how do I do that?
I know this is more than you want to answer, but maybe you can point us in the right direction…
For example, how do I make the menu visible to:
– “subscribers” and users with role called “teachers”
– all users logged in on Wednesday
– all users with role called “teachers” on Wednesday
– all users with access to a certain course (if the site sells courses, say with LearnDash plugin)
– all users who have purchased product X with WooCommerce
You see the lay user doesn’t know how to join two conditions, or add multiple roles in one statement.
In general, the only examples I see of what to put in the “Visibility” field are the three in the “Description” tab of the plugin. You mention that any crazy PHP or WordPress functions can be used, but it would be great if there were a few more simple examples that folk who are not as knowledgeable on PHP or WordPress functions can use.
I’d imagine that you have seen some interesting uses and could give a few more examples, or provide a link to reference some ideas…