Same hook for reg. #2270
This commit is contained in:
parent
a9154c07a4
commit
eb544b10a7
|
@ -676,8 +676,7 @@ function woocommerce_process_login() {
|
|||
* @return void
|
||||
*/
|
||||
function woocommerce_process_registration() {
|
||||
|
||||
global $woocommerce;
|
||||
global $woocommerce, $current_user;
|
||||
|
||||
if ( ! empty( $_POST['register'] ) ) {
|
||||
|
||||
|
@ -756,6 +755,9 @@ function woocommerce_process_registration() {
|
|||
return;
|
||||
}
|
||||
|
||||
// Get user
|
||||
$current_user = get_user_by( 'id', $user_id );
|
||||
|
||||
// Action
|
||||
do_action( 'woocommerce_created_customer', $user_id );
|
||||
|
||||
|
|
Loading…
Reference in New Issue