Tag Archives: content

How to Setup Special Capabilities

The shortcodes to protect content has a great option that will let you set special capabilities for your users. This option works with tags and only users with those tags will be able to see the private content.

1. Create the Special Capabilities Field

The first step to start using the Special capabilities opting is creating a new profile field by using the special meta key “ccap“.

1

Set one or many tags by using comma to separate them. We will need to use these tags in the content protection shortcode.

2

Make sure that the field has been created by using the above settings. Check the screenshot.

2. Assigning Tags to the Users:

Now that we’ve created the special capabilities field we need to edit an user and assign it “tags”.

3

4

 

3. Shortcode Usage:

 

[usersultra_protect_content ccap='exclusive'] Private Content... [/usersultra_protect_content]

Protect Content

[usersultra_protect_content]

This Shortcode protects portions of contents bassed on logged in or membership.

Options:

OPTIONS DEFAULT ALTERNATIVES
logged_in_based NULL logged_in_based, membership_based, role_based, group_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 UU Users module.
roles NULL any role you wish to display the content to. Example: administrator, subscriber
custom_message_role NULL “_blank” will display a blank message.
groups NULL any group ID you wish to display the content to. Example: 1,3. You will find the group’s ID on the groups module.
custom_message_group NULL “_blank” will display a blank message.

Logged in based protection:

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

Role based protection:

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

Groups based protection:

[usersultra_protect_content display_rule='group_based' groups='2,4' custom_message_group='Only Users in this group can see the content']Your private content here [/usersultra_protect_content]