Last active
February 22, 2026 12:34
-
-
Save spivurno/bab25f052a4a9ebeacfab6f8fab5faf4 to your computer and use it in GitHub Desktop.
Confirming Email with Gravity Forms Save & Continue (aka Save and Continue to Continue)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $form_id = 133; | |
| $email_field_id = 6; | |
| $token_field_id = 8; | |
| add_filter( 'gform_incomplete_submission_post_get', function( $submission_json, $token, $form ) use ( $form_id, $token_field_id ) { | |
| $data = json_decode( $submission_json, true ); | |
| if ( $form['id'] == $form_id ) { | |
| $data['submitted_values'][ $token_field_id ] = $token; | |
| } | |
| return json_encode( $data ); | |
| }, 10, 3 ); | |
| add_action( "gform_pre_process_{$form_id}", function ( $form ) use ( $form_id, $email_field_id ) { | |
| if ( rgpost( 'gform_save' ) ) { | |
| $_POST['gform_resume_email'] = rgpost( "input_{$email_field_id}" ); | |
| } | |
| } ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please remove this text or add double slashes (//) to make it a comment. Thank you, David.