WPForms – Include form data in the Confirmation URL

* Include Form Fields on Confirmation URL
function ea_wpforms_include_form_fields_on_confirmation( $url, $form_id, $fields ) {
$args = array();
foreach( $fields as $field ) {
if( !empty( $field['value'] ) )
$args['field_' . $field['id']] = $field['value'];
return esc_url_raw( add_query_arg( $args, $url ) );
add_filter( 'wpforms_process_redirect_url', 'ea_wpforms_include_form_fields_on_confirmation', 10, 3 );
view raw functions.php hosted with ❤ by GitHub

Bill Erickson

Bill Erickson is a freelance WordPress developer and a contributing developer to the Genesis framework. For the past 14 years he has worked with attorneys, publishers, corporations, and non-profits, building custom websites tailored to their needs and goals.

Ready to upgrade your website?

I build custom WordPress websites that look great and are easy to manage.

Let's Talk