woocommerce_new_customer action-hook . WC 1.0
Usage
add_action( 'woocommerce_new_customer', 'action_function_name_1161', 10, 2 ); function action_function_name_1161( $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 136
do_action( 'woocommerce_new_customer', $customer->get_id(), $customer );
Where in WP core the hook is used WooCommerce
woocommerce/packages/woocommerce-admin/src/Schedulers/CustomersScheduler.php 29
add_action( 'woocommerce_new_customer', array( __CLASS__, 'schedule_import' ) );