Membership Protected Content shortcode

The “Membership Protected Content” shortcode can be selected from within posts, pages and products.
It allows you to set up different content for the same “post” (page or product)of each different membership plan: the system will automatically select the content to display to each customer, according to the type of membership they own.

Every content added within the shortcode will only be displayd to customers who own a membership plan.
Example: [membership_protected_content]

Setting the ID of the membership plan as a shortcode attribute, the content within the shortcode will be visible only by the users associated with said plan.
Example: [membership_protected_content plan_id=”123″] content [/membership_protected_content]

To find the plan ID, go to “Memberships”.

Memberships

The attribute “user” define the type of user that can view the content. Possible values: member, non-member, guest, logged.
Default: member.

Supposing that we want to show the content to all the non-members users with id=”123″, we will write the shortcode as follows:

[membership_protected_content plan_id=”123″ user=”non-member”] content [/membership_protected_content]