@davidwrobel00 – Sorry for the delay, your probably not crazy.
The [content_control] shortcode has a few parameters:
– logged_out: if set checks for logged out users rather than the default.
– roles: comma separated list of role slugs to check for.
– class: css class you want to add for customization.
– message: custom denial message.
Hope that helps.
-
This reply was modified 6 years, 1 month ago by
Daniel Iser.
-
This reply was modified 6 years, 1 month ago by
Daniel Iser.
Thanks very much for this great utility!
I could only get the “role” parameter to work correctly (“roles” would not work).
Also, could you please (please) consider adding a NOT operator? For instance, I have some content that I’d like to show if a user is in a role, and different content if a user is NOT in that role (including logged out users).
It’d be a lot simpler to handle this scenario if we could do something similar to this:
[content_control role="Privileged"]Privileged Content[/content_control]
[content_control !role="Privileged"]Unprivileged content, including logged out[/content_control]
Thanks!