woocommerce_api_create_customer
Использование
add_action( 'woocommerce_api_create_customer', 'wp_kama_woocommerce_api_create_customer_action', 10, 2 ); /** * Function for `woocommerce_api_create_customer` action-hook. * * @param $customer_id * @param $data * * @return void */ function wp_kama_woocommerce_api_create_customer_action( $customer_id, $data ){ // action... }
- $customer_id
- -
- $data
- -
Где вызывается хук
woocommerce/includes/legacy/api/v3/class-wc-api-customers.php 382
do_action( 'woocommerce_api_create_customer', $customer->get_id(), $data );
woocommerce/includes/legacy/api/v2/class-wc-api-customers.php 381
do_action( 'woocommerce_api_create_customer', $customer->get_id(), $data );