Title: Custom display rules
Last modified: May 5, 2020

---

# Custom display rules

 *  Resolved [Ivan Lutrov](https://wordpress.org/support/users/ivanlutrov/)
 * (@ivanlutrov)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/custom-display-rules/)
 * Thanks for a very useful & well-written plugin. I have a specific requirement
   on a project I’m working on and I have created a temporary fork of your plugin
   to enable the functionality I need on this occasion.
 * I think it might be useful to enable a hook that determines if the popup should
   appear when none of your built-in rules apply. In my case, I wanted to be able
   to control if the popup shows, based on the post tags.
 * File: `includes/helpers-advanced-popups.php`
    Function: `adp_is_popup_visible()`
 *     ```
       // Apply a final filter to determine visibility
       $visible = apply_filters('advanced_popups_is_popup_visible', $visible, $popup_id);
       ```
   
 * This allows me to control whether the popup shows for any URL and I think it’s
   a small, but powerful change to the plugin. I’m wondering if you’ll find my suggestion
   useful enough to incorporate into a future release?
    -  This topic was modified 6 years, 1 month ago by [Ivan Lutrov](https://wordpress.org/support/users/ivanlutrov/).
    -  This topic was modified 6 years, 1 month ago by [Ivan Lutrov](https://wordpress.org/support/users/ivanlutrov/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [codesupplyco](https://wordpress.org/support/users/codesupplyco/)
 * (@codesupplyco)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/custom-display-rules/#post-13135436)
 * Hello,
 * Many thanks for the feature suggestion.
 * We’ve added the filter in the recent version update.

Viewing 1 replies (of 1 total)

The topic ‘Custom display rules’ is closed to new replies.

 * ![](https://ps.w.org/advanced-popups/assets/icon.svg?rev=2690535)
 * [Advanced Popups](https://wordpress.org/plugins/advanced-popups/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-popups/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-popups/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-popups/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-popups/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-popups/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [codesupplyco](https://wordpress.org/support/users/codesupplyco/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/custom-display-rules/#post-13135436)
 * Status: resolved