SWPM Partial Protection Shortcode Test

This post has various SWPM section protection applied.

It works nicely with Guttenberg block editor.

Everything below this line is inside a section protection shortcode.

Note: Going forward we will use comma (,) as the separator for shortcode arguments. However for backwards compatibility it can accept dash (-) as well.

Note: v2.0 of the addon was released on 30th July 2024. We will update this documentation to replace dash (-) with comma after a month or two.

Parameter: none (just standard shortcode)

This content is for members only.

This content is for members only.

Following section uses the swpm_protected shortcode

This content is for members only.

Parameter: for

Following section is accessible to membership level 2 ONLY

This content is for members only.

Following section is accessible to membership level 2 and 3 only

This content is for members only.

Parameter: not_for

Members from level 2 can’t see the following section

This content is for members only.

Parameter: format_protected_msg

Formatted Protected Msg

This content is for members only.

Level 2,3 and Expired Account or Protected Msg

This content is for members only.

Parameter: member_id

Member ID 62 can see the following section

This content is for members only.

Member ID 28, 35 or 39 can see the following section

This content is for members only.

Parameter: visible_to

Following section is visible to any logged-in member

This content is for members only.

Following section is visible to anyone who is NOT LOGGED-IN

Whatever content goes here is only visible to a non-logged in user (anonymous visitors of your site will see this message).

Parameter: account_status

Section Protection visible to Active members of Level 3 only

This content is for members only.

Section Protection visible to EXPIRED members of Levels 2 or 3

This content is for members only.

Section Protection visible to ANY EXPIRED members only

This content is for members only.

Parameter: do_not_show_protected_msg

Section Protection WITHOUT the protection msg

Section Protection WITHOUT the protection or expired msg

Parameter: custom_msg

Section Protection with CUSTOM MSG for non-members

This is a custom message
This is a test link in the message
X

Forgot Password?

Join Us