mbr_logout_url
Usage
This shortcode returns the URL to log out the current user from WordPress and redirect that logged out user to a chosen page/post/URL.
Parameters
Parameters | Description |
---|---|
redirect | Specifies the URL the user will be redirected to after a logout. Default: As defined in ActiveMember360, Settings, Memberships, Redirect on logout. Required: no. |
Validity
This shortcode is evaluated for any type of visitor.
Conditional Branching
This shortcode does NOT support conditional branching with [ELSE_logout_url].
Nesting
Shortcode nesting is NOT supported.
Examples
- Example 1
- Example 2
Will return the logout URL that will redirect the logged out user to the page/post defined in ActiveMember360, Settings, Memberships, Redirect on logout:
[mbr_logout_url]
Will return the logout URL that will redirect the logged out user to https://yoursite.com:
[mbr_logout_url redirect='https://yoursite.com']
API
info
There is currently no ActiveMember360 API function equivalent for this shortcode. Use the standard WordPress function wp_logout_url.