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