Protect Partial Content

[easywpm_protect]

 

This Shortcode protects portions of contents based on logged in, membership and roles.

OPTIONS DEFAULT ALTERNATIVES
logged_in_based NULL logged_in_based, membership_based, role_based,
membership_id NULL the ID of the membership package separated by commas
custom_message_loggedin NULL “_blank” will display a blank message.
custom_message_membership NULL “_blank” will display a blank message.
ccap any user with these tags will be able to see the protected content. you can set the tags in the Easy WP Members – Members Tab.
roles NULL any role you wish to display the content to. Example: administrator, subscriber
custom_message_role NULL “_blank” will display a blank message.

Logged in based protection:

			
[easywpm_protect display_rule='logged_in_based' custom_message_loggedin='Only Logged in users can see the content']Your private content here [/easywpm_protect] 

Role based protection:

[easywpm_protect display_rule='role_based' roles='subscriber,administrator' custom_message_role='Only Subscribers can see the content']Your private content here [/easywpm_protect] 

Subscription based protection:

[easywpm_protect display_rule='membership_based' membership_id='2,4' custom_message_membership='This content is visible only for certain subscription plans']Your private content here [/easywpm_protect] 

Leave a Reply

Your email address will not be published. Required fields are marked *