Primary

[groups_non_member]

Limit content visibility

These shortcodes are used to limit the visibility of the content they enclose. The group attribute is required and can be used to indicate one or more comma-separated groups.

Examples:

a) Asking members to log in – this is based on the Registered group that all users belong to:

[groups_non_member group="Registered"]
Please log in to access restricted content.[/groups_non_member]

b) Showing content conditionally to non-members of a group:

[groups_non_member group="Gold"]
Members of the Gold group will not see this when logged in.
[/groups_non_member]