WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Купить персональные IPV4 и IPV6 прокси
событие не описано

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

Fires after a single object is deleted or trashed via the REST API.

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

add_action( 'woocommerce_rest_delete_(post_type)_object', 'action_function_name_5194', 10, 3 );
function action_function_name_5194( $object, $response, $request ){
	// action...
}
$object(WC_Data)
The deleted or trashed object.
$response(WP_REST_Response)
The response data.
$request(WP_REST_Request)
The request sent to the API.

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

WC_REST_CRUD_Controller::delete_item()
woocommerce_rest_delete_(post_type)_object
WC_REST_Products_V2_Controller::delete_item()
woocommerce_rest_delete_(post_type)_object
WC_REST_Product_Variations_V2_Controller::delete_item()
woocommerce_rest_delete_(post_type)_object
woocommerce/packages/woocommerce-rest-api/src/Controllers/Version3/class-wc-rest-crud-controller.php 476
do_action( "woocommerce_rest_delete_{$this->post_type}_object", $object, $response, $request );
woocommerce/packages/woocommerce-rest-api/src/Controllers/Version2/class-wc-rest-products-v2-controller.php 1473
do_action( "woocommerce_rest_delete_{$this->post_type}_object", $object, $response, $request );
woocommerce/packages/woocommerce-rest-api/src/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php 573
do_action( "woocommerce_rest_delete_{$this->post_type}_object", $object, $response, $request );

Где используется хук (в ядре WC)

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