I would like to hide the “Add a listing” button only to users that have selected a specific plan (membership). All my users have to select a plan prior to use the site. Then regular users (buyers) have Membership1. I have two types of vendors with Plans: Membership2 and Membership3
I would like to hide the button “Add a listing” to buyers with Membership1, but show it to vendors with Membership2 and Membership3. is that possible?
Thanks fo the snippet. it works partially. The button is hidden when regular user with buyer Membership1 is logged in, and it shows to vendors once they have logged in. Thats is good!
However, it is also displayed when not one is logged in, so it is kind of displayed all the time by default. I would like to hide the button all the time, and to users that logged in with Membership1.
Then, only show the button to vendors that have logged in with membership2/3.