Title: Hook action with condition
Last modified: June 14, 2019

---

# Hook action with condition

 *  [olivierpages](https://wordpress.org/support/users/olivierpages/)
 * (@olivierpages)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/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

Viewing 1 replies (of 1 total)

 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [6 years, 11 months ago](https://wordpress.org/support/topic/hook-action-with-condition/#post-11637479)
 * Moved to Fixing WordPress, this is not a Developing with WordPress topic.
 * [@olivierpages](https://wordpress.org/support/users/olivierpages/) Please do 
   not create duplicate topics. I have archived your new one.
 * If you need support for that plugin then please ask in that plugin’s support 
   forum.
 * [https://wordpress.org/support/plugin/advanced-classifieds-and-directory-pro/#new-post](https://wordpress.org/support/plugin/advanced-classifieds-and-directory-pro/#new-post)

Viewing 1 replies (of 1 total)

The topic ‘Hook action with condition’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/hook-action-with-condition/#post-11637479)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
