[groups_logout] shortcode renders a link for users to log out.
This shortcode allows the use of the following attribute:
redirectdefaults to the current URL and will redirect to the given page after logout.
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.
You're logged in.
redirect attribute to redirect to a specific page after logout: