Title: Short code documentation
Last modified: March 31, 2020

---

# Short code documentation

 *  Resolved [davidwrobel00](https://wordpress.org/support/users/davidwrobel00/)
 * (@davidwrobel00)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/short-code-documentation/)
 * 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](https://wordpress.org/support/users/danieliser/)
 * (@danieliser)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/short-code-documentation/#post-12668875)
 * [@davidwrobel00](https://wordpress.org/support/users/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](https://wordpress.org/support/users/danieliser/).
    -  This reply was modified 6 years, 1 month ago by [Daniel Iser](https://wordpress.org/support/users/danieliser/).
 *  [ndfan77](https://wordpress.org/support/users/ndfan77/)
 * (@ndfan77)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/short-code-documentation/#post-12741626)
 * 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.

 * ![](https://ps.w.org/content-control/assets/icon-256x256.gif?rev=2968535)
 * [Content Control - The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More](https://wordpress.org/plugins/content-control/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/content-control/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/content-control/)
 * [Active Topics](https://wordpress.org/support/plugin/content-control/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/content-control/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/content-control/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [ndfan77](https://wordpress.org/support/users/ndfan77/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/short-code-documentation/#post-12741626)
 * Status: resolved