• Resolved davidwrobel00

    (@davidwrobel00)


    Call me crazy but I can’t find the documentation for short codes can someone point me in the right direction?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Daniel Iser

    (@danieliser)

    @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 4 years, 10 months ago by Daniel Iser.
    • This reply was modified 4 years, 10 months 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!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Short code documentation’ is closed to new replies.