• Resolved jhned

    (@jhned)


    Hi there!

    There’s a Gravity Forms filter on gform_confirmation that’s hooked into an anonymous callback, which means that I can’t easily change it with remove_filter. Could you please refactor it to a named callback so that I can remove the filter?

    Another thought– to be a bit more future-proof, you could add a filter inside the callback to deactivate it, e.g.:

    $show_confirmation = apply_filters('show_oopspam_confirmation', true);
    if ($show_confirmation === false) {
    return $confirmation;
    }

    This way, if the gform_confirmation hook priority level changes, people who want to override this feature can still do that.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author oalili

    (@oalili)

    Hi @jhned ,

    Thanks for the feedback!

    We will refactor it in the next release.

    Thanks

    Thread Starter jhned

    (@jhned)

    Awesome, thanks so much!

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

The topic ‘Gravity Forms: refactor gform_confirmation filter anonymous callback’ is closed to new replies.