Skip to main content

mbr_is_logged_in

Usage​

This shortcode determines the content to be included based upon the logged in status of the current visitor.

Parameters​

None.

Validity​

This shortcode is evaluated for any type of visitor.

Conditional Branching​

[ELSE_is_logged_in] conditional branching is supported.

Nesting​

Shortcode nesting is NOT supported.

Examples​

Will display "Display this if logged in." if the visitor is logged in to the WordPress site:

[mbr_is_logged_in]
Display this if logged in.
[/mbr_is_logged_in]

API​

info

There is no ActiveMember360 API function equivalent for this shortcode. Please use the regular WordPress function is_user_logged_in with the PHP if else construct.