Skip to main content

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​

ParametersDescription
redirectSpecifies 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​

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]

API​

info

There is currently no ActiveMember360 API function equivalent for this shortcode. Use the standard WordPress function wp_logout_url.