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?
- The topic ‘Custom display rules’ is closed to new replies.