Hook action with condition
-
Hi everyone,
I am struggling to create an action which might be simple to set for someone who knows how to deal with hooks.
I would like to hide one specific category within a classifieds plugin called ACADP, depending if the logged-in user is registered on a free membership or a paid membership.
I have two different memberships set with Memberpress. And I would like the users registered on the free membership not to be able to post classifieds on the category “1” of ACADP plugin.
Meaning hiding the acadp category id=1 from the form whose shortcode is [acadp_listing_form] to users whose membership is “123”.
Memberpress use filters or shortcode such as [mepr-active membership=”123″] and ACADP plugin filters such as [acadp_category id=1].Anyone could help with that?
Thank you very much for your help!
Olivier
- The topic ‘Hook action with condition’ is closed to new replies.