Last active
January 31, 2019 10:08
-
-
Save wpmonks/35e0f01ca74663a22a1943b9a5359aec to your computer and use it in GitHub Desktop.
Gravity forms before submission review page for particular form
This file contains 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
add_filter( 'gform_review_page_FORMID', 'wpmonks_add_review_page', 10, 3 ); | |
function wpmonks_add_review_page( $review_page, $form, $entry ) { | |
// Enable the review page | |
$review_page['is_enabled'] = true; | |
if ( $entry ) { | |
// Populate the review page | |
$review_page['content'] = GFCommon::replace_variables( '{all_fields}', $form, $entry ); | |
} | |
return $review_page; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment