Primary

[groups_member]

This shortcode is used to protect content sections. Instead of protecting a whole post, page or other post type, you can protect part of it using this shortcode.

The shortcode is used to limit the visibility of the content enclosed, within its opening and its closing shortcode tag as shown below. The group attribute is required and can be used to indicate one or more comma-separated groups.

Supported attributes:

  • group is required and must indicate one or more group names separated by comma – if more than one group is given, the enclosed content is shown to any user that belongs to at least one of the groups

Examples

a) Restrict content to members of a Gold group:

[groups_member group="Gold"]
Only members of the Gold group can see this.
[/groups_member]

b) Restrict content to members of an Advanced or Premium group:

[groups_member group="Advanced,Premium"]
Only members of Advanced or Premium can see this.
[/groups_member]