Hide the content from members who are associated with the exact levels specified in the “levels” parameter
In this case, the member must be associated with the exact same levels as specified in the “levels” parameters in order for the content to be hidden from him.
Usage
[wlss_hide_from_members_in_exact_levels levels="Level 1,,Level 2,,Level 3"]Your content here[/wlss_hide_from_members_in_exact_levels]
Parameters
You can add the below parameters to the shortcode in order to configure it better to your own membership site’s structure:
Parameter Name | Required / Optional | Description |
levels | Required | levels names separated with the delimiter ,, |
admin_bypass | Optional | Always display content to admin user. Default is no. options: yes/no |
delimiter | Optional | You can change the default delimiter ,, and use your own delimiter symbols |
Examples
Example #1:
John, one of the members, is registered to the Silver, Gold & Platinum levels
When using this shortcode and parameters as seen below the content will be hidden from John:
[wlss_hide_from_members_in_exact_levels levels="Silver,,Gold,,Platinum"]Your content here[/wlss_hide_from_members_in_exact_levels]
Example #2:
John, one of the members, is registered to the Silver & Gold levels
When using this shortcodes below the content will not be hidden from John:
[wlss_hide_from_members_in_exact_levels levels="Silver,,Gold,,Platinum"]Your content here[/wlss_hide_from_members_in_exact_levels]