• Resolved Ivan Lutrov

    (@ivanlutrov)


    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 4 years, 6 months ago by Ivan Lutrov.
    • This topic was modified 4 years, 6 months ago by Ivan Lutrov.
Viewing 1 replies (of 1 total)
  • Plugin Author codesupplyco

    (@codesupplyco)

    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.