This shortcode exposes the content it encloses, if the viewing user does not have any of the referenced capabilities.

The capability attribute is required and can be used to indicate one or more comma-separated capabilities.

Supported attributes:

  • capability is required and must indicate one or more capabilities separated by comma – with more than one capability indicated, the enclosed content is shown if the user does not have any of them


[groups_can_not capability="edit_posts"]
Users who can not edit posts will see this.