woocommerce_created_customer

The WooCommerce woocommerce created customer hook.

Description

do_action( 'woocommerce_created_customer', (unknown) $customer_id, (unknown) $new_customer_data, (unknown) $password_generated ); 

Parameters (3)

0. $customer_id (unknown)
The customer id.
1. $new_customer_data (unknown)
The new customer data.
2. $password_generated (unknown)
The password generated.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'woocommerce_created_customer', $customer_id, $new_customer_data, $password_generated ); 
The following example is for adding a hook callback.
  1. // define the woocommerce_created_customer callback 
  2. function action_woocommerce_created_customer( $customer_id, $new_customer_data, $password_generated ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'woocommerce_created_customer', 'action_woocommerce_created_customer', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'woocommerce_created_customer', 'action_woocommerce_created_customer', 10, 3 ); 

Defined (1)

The action is defined in the following location(s).

/includes/wc-user-functions.php  
  1. do_action( 'woocommerce_created_customer', $customer_id, $new_customer_data, $password_generated );