Title: Bug in your code
Last modified: May 26, 2025

---

# Bug in your code

 *  Resolved [kubiq](https://wordpress.org/support/users/kubiq/)
 * (@kubiq)
 * [1 year ago](https://wordpress.org/support/topic/bug-in-your-code-2/)
 * Hello,
 * thank you for this plugin!
 * However, there is a bug in your code in the file `/com/classes/PopupChecker.php`
   in function `isSatisfyForParam` the line `if (!$isSatisfy && do_action('isAllowedForTarget',
   $targetData, $post)) {` will never work, because `do_action` will never return
   anything and the result will be always `null` .
 * So you should replace this with `apply_filters( 'isAllowedForTarget', false, 
   $targetData, $post )` to make this works and that’s what I need to create a custom
   display rule for my client.
 * Any chance you will fix this soon?
 * Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Jawada](https://wordpress.org/support/users/jawada/)
 * (@jawada)
 * [1 year ago](https://wordpress.org/support/topic/bug-in-your-code-2/#post-18504980)
 * Hi [@kubiq](https://wordpress.org/support/users/kubiq/)
 * Thank you for bringing this to our attention.
 * I will forward this to our development team for further investigation and a fix.
   If you have any additional questions or concerns in the meantime, please don’t
   hesitate to let us know.
 * Best regards,
 *  Plugin Support [Jawada](https://wordpress.org/support/users/jawada/)
 * (@jawada)
 * [6 months, 2 weeks ago](https://wordpress.org/support/topic/bug-in-your-code-2/#post-18734941)
 * Hi [@kubiq](https://wordpress.org/support/users/kubiq/) ,
 * Thank you for your patience and understanding.
 * This issue has now been fixed, and an updated version of Popup Builder has been
   released. Please update to the latest version to apply the fix.
 * If you have any questions, feel free to let us know, we’re here to help.
 * Best regards,

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Bug in your code’ is closed to new replies.

 * ![](https://ps.w.org/popup-builder/assets/icon-128x128.gif?rev=2698840)
 * [Popup Builder - Create highly converting, mobile friendly marketing popups.](https://wordpress.org/plugins/popup-builder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/popup-builder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/popup-builder/)
 * [Active Topics](https://wordpress.org/support/plugin/popup-builder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/popup-builder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/popup-builder/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Jawada](https://wordpress.org/support/users/jawada/)
 * Last activity: [6 months, 2 weeks ago](https://wordpress.org/support/topic/bug-in-your-code-2/#post-18734941)
 * Status: resolved