Skip to main content

mbr_menu_loginout_label

Usage​

This shortcode returns either a Login label for a not logged in user or a Logout label for a logged in user.

It is primarily intended for use within WordPress menu items, but can be used anywhere shortcodes are supported.

Parameters​

ParametersDescription
loginThe text to show for a not logged in user.
Default: Login
Required: no.
logoutThe text to show for a logged in user.
Default: Logout
Required: no.

Validity​

This shortcode is evaluated for any type of visitor.

Conditional Branching​

This shortcode does NOT support conditional branching with [ELSE_menu_loginout_label].

Nesting​

Shortcode nesting is NOT supported.

Examples​

Will return the text Login for a not logged in user and Logout for a logged in user.

[mbr_menu_loginout_label]

API​

Note

There is currently no ActiveMember360 API function equivalent for this shortcode.