I want to use the Woocommerce Membership plugin shortcode [wcm_restrict plans=“XYZ”] to show something to those who have a subscription membership and something to different to:
1. Anyone who is a member of another plan (and *not* a subscriber - I have lots of non-subscription membership plans)
2. Anyone not logged in.
I have wcm_restrict registered as a custom shortcode, and thought I could use the conditional shortcode. The shortcode has "plans=" attribute to allow you to show one thing to members of Plan X and another thing to members of Plan Y. However, I have dozens of plans - I just want to distinguish between subscriber members and non-subscriber members.
It does not seem to be possible to do, say, this:
[wpv-conditional if="( '[wcm_restrict plans]' eq 'select-english-membership-plan' )"] SHOW SOMETHING HERE [/wpv-conditional]
Or
[wpv-conditional if="( '[wcm_restrict field="plans"]' eq 'select-english-membership-plan' )"] SHOW SOMETHING HERE [/wpv-conditional]
Can I specify attributes within the custom shortcode (e.g. plans=XYZ) in some way so as to show content to only those who are in fact members of the plan linked to my subscription service?
If I could show things to only those whose role=subscriber (using wpv-user?) that would work for me also, I think. But wpv-user seems limited to displaying fields rather than being part of a conditional statement, from my testing so far.