Archived topic
Excluding an Element based on Membership with MemberPress
1 reply · Started by James Orr on September 14, 2021
Using GeneratePress and MemberPress.
I have set up a GeneratePress hook Element to appear below a post with info on how to purchase a Membership on resources that are locked down.
However, once someone purchases the Membership they don't need to see that Element anymore.
Is there a way, with GeneratePress, to EXCLUDE an Element based on a Membership level the user has?
Thanks in advance.
Hi there,
You can use this filter for any display rules that can't be handled within the element display rules section:
https://docs.generatepress.com/article/generate_element_display/
You will need to find the appropriate conditional tags from the Membership plugin you are using.
Let me know if this helps :)