Primary

[groups_logout]

The [groups_logout] shortcode renders a link for users to log out.

This shortcode allows the use of the following attribute:

  • redirect defaults to the current URL and will redirect to the given page after logout.

Example A:

Here is an example that will render a content section for those who are logged in, along with a logout link produced by this shortcode.

[groups_member group="Registered"]
You're logged in.
[groups_logout]
[/groups_member]

Example B:

Using the redirect attribute to redirect to a specific page after logout:

[groups_logout redirect="http://www.example.com/here"]