From 75610a024a2c908e985e21b71e8bb3aafe2fbe01 Mon Sep 17 00:00:00 2001 From: Champ Camba Date: Fri, 14 Jul 2017 21:17:58 +0800 Subject: [PATCH] Add new filter hook 'um_add_user_frontend_submitted' --- core/um-actions-register.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/um-actions-register.php b/core/um-actions-register.php index 6ba20485..0a56f7db 100644 --- a/core/um-actions-register.php +++ b/core/um-actions-register.php @@ -104,11 +104,14 @@ $creds['user_password'] = $user_password; $creds['user_email'] = trim( $user_email ); + $args = apply_filters('um_add_user_frontend_submitted', $args ); + $args['submitted'] = array_merge( $args['submitted'], $creds); $args = array_merge($args, $creds); unset( $args['user_id'] ); + do_action('um_before_new_user_register', $args); $user_id = wp_create_user( $user_login, $user_password, $user_email );