woocommerce_rest_delete_(taxonomy) хук-событиеWC 1.0

Fires after a single term is deleted via the REST API.


add_action( 'woocommerce_rest_delete_(taxonomy)', 'wp_kama_woocommerce_rest_delete_taxonomy_action', 10, 3 );

 * Function for `woocommerce_rest_delete_(taxonomy)` action-hook.
 * @param WP_Term          $term     The deleted term.
 * @param WP_REST_Response $response The response data.
 * @param WP_REST_Request  $request  The request sent to the API.
 * @return void
function wp_kama_woocommerce_rest_delete_taxonomy_action( $term, $response, $request ){

	// action...
The deleted term.
The response data.
The request sent to the API.

Где вызывается хук

woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-terms-controller.php 578
do_action( "woocommerce_rest_delete_{$taxonomy}", $term, $response, $request );

Где используется хук в WooCommerce

Использование не найдено.