Skip to content

Instantly share code, notes, and snippets.

@wpmonks
Last active January 31, 2019 10:08
Show Gist options
  • Save wpmonks/35e0f01ca74663a22a1943b9a5359aec to your computer and use it in GitHub Desktop.
Save wpmonks/35e0f01ca74663a22a1943b9a5359aec to your computer and use it in GitHub Desktop.
Gravity forms before submission review page for particular form
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