Created
January 27, 2017 15:25
-
-
Save Shelob9/26141bfbee4ab7ef76006667be4e1c06 to your computer and use it in GitHub Desktop.
Get all data from a form after validation See https://calderaforms.com/doc/caldera_forms_submit_post_process/
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
<?php | |
add_action( 'caldera_forms_submit_post_process', function( $form ){ | |
//put form field data into an array $data | |
$data= array(); | |
foreach( $form[ 'fields' ] as $field_id => $field){ | |
$data[ $field[ 'slug' ] ] = Caldera_Forms::get_field_data( $field_id, $form ); | |
} | |
//Now you can do something with $data! | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment