Prevent payment redirect gravityforms
-
Hey,
Is there a way to prevent the payment redirect from happening through a wp hook?
For example:
prevent the redirect if field 2 has value ‘hello’ in gform_confirmation hook or any other hook?add_filter( 'gform_confirmation', 'block_redirect', 10, 4); function block_redirect( $confirmation, $form, $entry ) { if( $form['id'] == 1 && rgar($entry, '48') == 'pin-betaald' || rgar($entry, '48') == 'achteraf') { //TBD prevent payment redirect } return $confirmation; }
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
The topic ‘Prevent payment redirect gravityforms’ is closed to new replies.