Shortcode: Show for users who do not have a role?
-
Hi,
is it somehow possible to use the shortcode in a way that it displays the content to users who do not have a specific role? (Perhaps with using roles=”!administrator”)Example:
Do you have the role X? [content_control roles=”administrator”]Yes[/content_control]roles=”!administrator”]No[/content_control]The goal would be to display:
Do you have the role X? Yes (for Admins) and
Do you have the role X? No (for non Admins)Thanks and best regards!
Tioata
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Shortcode: Show for users who do not have a role?’ is closed to new replies.