woocommerce_created_customer

woocommerce_created_customer

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

do_action('woocommerce_created_customer') is found 2 times:

  • /includes/wc-user-functions.php line 115
    		if ( is_wp_error( $customer_id ) ) {
    			return $customer_id;
    		}
    
    		do_action( 'woocommerce_created_customer', $customer_id, $new_customer_data, $password_generated );
    
    		return $customer_id;
    	}
    }
    
    /**
    
  • /src/StoreApi/Routes/V1/Checkout.php line 707
    		 * @param integer $customer_id New customer (user) ID.
    		 * @param array $new_customer_data Array of customer (user) data.
    		 * @param string $password_generated The generated password for the account.
    		 */
    		do_action( 'woocommerce_created_customer', $customer_id, $new_customer_data, $password_generated );
    
    		return $customer_id;
    	}
    
    	/**
    	 * Convert an account creation error to an exception.
    

See this hook used in plugins:

Examples using woocommerce_created_customer