Bug in your code
-
Hello,
thank you for this plugin!
However, there is a bug in your code in the file
/com/classes/PopupChecker.phpin functionisSatisfyForParamthe lineif (!$isSatisfy && do_action('isAllowedForTarget', $targetData, $post)) {will never work, becausedo_actionwill never return anything and the result will be alwaysnull.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)
Viewing 2 replies - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.