woocommerce_new_customer хук-событие . WC 1.0
Использование
add_action( 'woocommerce_new_customer', 'action_function_name_5367', 10, 2 ); function action_function_name_5367( $customer_id, $customer ){ // action... }
- $customer_id
- -
- $customer
- -
Где вызывается хук
woocommerce_new_customer
woocommerce/includes/data-stores/class-wc-customer-data-store.php 136
do_action( 'woocommerce_new_customer', $customer->get_id(), $customer );
Где используется хук в ядре WooCommerce
woocommerce/includes/data-stores/class-wc-customer-data-store.php 29
add_action( 'woocommerce_new_customer', array( __CLASS__, 'schedule_import' ) );