mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-13 19:56:27 +09:00
Add filter 'um_submit_form_data'
This commit is contained in:
+7
-5
@@ -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 ] );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user