diff --git a/core/um-form.php b/core/um-form.php index 5176726e..e3cc9214 100644 --- a/core/um-form.php +++ b/core/um-form.php @@ -130,6 +130,8 @@ class UM_Form { } + $this->post_form = apply_filters('um_submit_form_data', $this->post_form, $this->post_form['mode'] ); + /* Continue based on form mode - pre-validation */ do_action('um_submit_form_errors_hook', $this->post_form ); @@ -153,11 +155,11 @@ class UM_Form { $this->processing = $form['form_id']; - foreach($form as $key => $value){ - if (strstr($key, $this->form_suffix) ) { - $a_key = str_replace( $this->form_suffix, '', $key); - $form[$a_key] = $value; - unset($form[$key]); + foreach( $form as $key => $value ){ + if ( strstr( $key, $this->form_suffix ) ) { + $a_key = str_replace( $this->form_suffix, '', $key ); + $form[ $a_key ] = $value; + unset( $form[ $key ] ); } }