woocommerce_api_delete_customer
Использование
add_action( 'woocommerce_api_delete_customer', 'wp_kama_woocommerce_api_delete_customer_action', 10, 2 ); /** * Function for `woocommerce_api_delete_customer` action-hook. * * @param $id * @param $that * * @return void */ function wp_kama_woocommerce_api_delete_customer_action( $id, $that ){ // action... }
- $id
- -
- $that
- -
Где вызывается хук
woocommerce_api_delete_customer
woocommerce/includes/legacy/api/v3/class-wc-api-customers.php 462
do_action( 'woocommerce_api_delete_customer', $id, $this );
woocommerce/includes/legacy/api/v2/class-wc-api-customers.php 461
do_action( 'woocommerce_api_delete_customer', $id, $this );