- This topic has 2 replies, 2 voices, and was last updated 3 years, 2 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember Tweaks › Hide from one member level
It would be cool to have a [hide from …] shortcode to hide a bit of text from a particular member level if possible.
My free members are level 2
My paid members are level 3 (site-wide these are also allowed to view level 2 content)
However on one page there is a bit of text that I would like to hide from level 3.
So basically instead of [protected for level 3]xxx[/] I am wanting [hidden from level 3]xxx[/].
I don’t know if that’s possible but it would be cool if it was!
Linda
I think the not_for
and the do_not_show_restricted_msg
parameters should be able to achieve what you are after.
If you fully read the following partial protection feature, you will see how to use the “not_for” and “do_not_show_restricted_msg” parameters in that shortcode which hides the protected section also:
How to Protect a Section of a Post or Page (Partial Protection)
The following is an example usage of the shortcode that will hide the content from level 1 users:
[emember_protected not_for="1" do_not_show_restricted_msg="1"]
Whatever content goes here is NOT visible to members of membership level 1. All the other members can see this content.
[/emember_protected]
Thank you!