woocommerce_new_customer
Usage
add_action( 'woocommerce_new_customer', 'wp_kama_woocommerce_new_customer_action', 10, 2 ); /** * Function for `woocommerce_new_customer` action-hook. * * @param $customer_id * @param $customer * * @return void */ function wp_kama_woocommerce_new_customer_action( $customer_id, $customer ){ // action... }
- $customer_id
- -
- $customer
- -
Where the hook is called
woocommerce_new_customer
woocommerce/includes/data-stores/class-wc-customer-data-store.php 141
do_action( 'woocommerce_new_customer', $customer->get_id(), $customer );
Where the hook is used in WooCommerce
woocommerce/src/Admin/API/Reports/Customers/DataStore.php 97
add_action( 'woocommerce_new_customer', array( __CLASS__, 'update_registered_customer' ) );