[memb_logout]

Description

Terminates the current user session as soon as the shortcode renders. When redirect is provided, the redirect URL is stored and applied after the logout completes.

This is an action shortcode: it produces no output. Place it on a page the member visits to end their session, or link members to a dedicated logout page.

Shortcode Examples

[memb_logout redirect="/goodbye/"]

Shortcode Parameters

redirect

URL to redirect to after logout. Default: '' (no redirect; WordPress sends the user to the login screen).

Shortcode Attributes

Attribute Value
Conditional No
Nestable No
Accepts formatting No