Add shortcodes for conditionally showing content in the site, based upon the maintenance mode status.
Add [ljmm_is_maintenance_mode_enabled]Show this content only when maintenance mode is enabled[/ljmm_is_maintenance_mode_enabled] shortcode.
Add [ljmm_is_maintenance_mode_disabled]Show this content only when maintenance mode is disabled[/ljmm_is_maintenance_mode_disabled] shortcode.
Add shortcodes for conditionally showing content in the site, based upon the user login status.
Add [ljmm_is_user_logged_in]Show this content only when the user is logged in to their WordPress account[/ljmm_is_user_logged_in] shortcode.
Add [ljmm_is_user_logged_out]Show this content only when the user is logged out; a public user[/ljmm_is_user_logged_out] shortcode.
Sample Usage on a Member Registration page:
[ljmm_is_user_logged_out]
[ljmm_is_maintenance_mode_enabled]
[highlight]
New member registrations are blocked while we are in 'Maintenance Mode'.<br>
Please try again in a short while.
[/highlight]
[/ljmm_is_maintenance_mode_enabled]
[ljmm_is_maintenance_mode_disabled]
... add member registration form here ...
[/ljmm_is_maintenance_mode_disabled]
[/ljmm_is_user_logged_out]
[ljmm_is_user_logged_in]
[highlight]
Looks like you are already logged in ... no need to register again.
[/highlight]
[/ljmm_is_user_logged_in]
Add shortcodes for conditionally showing content in the site, based upon the maintenance mode status.
Add shortcodes for conditionally showing content in the site, based upon the user login status.
Sample Usage on a Member Registration page: