Title: Where do I apply filter code?
Last modified: August 31, 2016

---

# Where do I apply filter code?

 *  Resolved [jnicklasson](https://wordpress.org/support/users/jnicklasson/)
 * (@jnicklasson)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/where-do-i-apply-filter-code/)
 * I want to apply a filter like this:
 *     ```
       add_filter( 'popmake_popup_is_loadable', 'popup_load_referralCheck', 10, 2 );
       function popup_load_referralCheck( $is_loadable, $popup_id ) {
           if( $popup_id == 3629 ) {
               return ! empty( $_GET['popexperience'] );
           }
   
           return $is_loadable;
       }
       ```
   
 * But I can’t for the life of me figure out WHERE?
    And what if I need more filters
   to trigger other popups?
 * [https://wordpress.org/plugins/popup-maker/](https://wordpress.org/plugins/popup-maker/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Daniel Iser](https://wordpress.org/support/users/danieliser/)
 * (@danieliser)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/where-do-i-apply-filter-code/#post-7344092)
 * [@jnicklasson](https://wordpress.org/support/users/jnicklasson/) – That filter
   will still work but we have deprecated it and replaced it with pum_popup_is_loadable,
   should be the same other than that, but will prevent your error logs from filling
   with deprecated function notices.
 * If you have a child theme set up I would add it to your themes functions.php.
   If not I would look at [https://wordpress.org/plugins/my-custom-functions/](https://wordpress.org/plugins/my-custom-functions/)
   or similar.
 * As for filtering additional popups you simply add another if ( $popup_id == #){}
   block for the next ID in the same filter function.
 * Hope that helps.

Viewing 1 replies (of 1 total)

The topic ‘Where do I apply filter code?’ is closed to new replies.

 * ![](https://ps.w.org/popup-maker/assets/icon-256x256.gif?rev=3097653)
 * [Popup Maker - Boost Sales, Conversions, Optins, Subscribers with the Ultimate WP Popup Builder](https://wordpress.org/plugins/popup-maker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/popup-maker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/popup-maker/)
 * [Active Topics](https://wordpress.org/support/plugin/popup-maker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/popup-maker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/popup-maker/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Daniel Iser](https://wordpress.org/support/users/danieliser/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/where-do-i-apply-filter-code/#post-7344092)
 * Status: resolved