WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
фильтр не описан

woocommerce_rest_pre_insert_(post_type) хук-фильтр . WC 1.0

Filter the query_vars used in get_items for the constructed query.

The dynamic portion of the hook name, $this->post_type, refers to post_type of the post being prepared for insertion.

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

add_filter( 'woocommerce_rest_pre_insert_(post_type)', 'filter_function_name_5058', 10, 2 );
function filter_function_name_5058( $data, $request ){
	// filter...

	return $data;
}
$data(stdClass)
An object representing a single item prepared for inserting or updating the database.
$request(WP_REST_Request)
Request object.

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

WC_REST_Webhooks_V1_Controller::prepare_item_for_database()
woocommerce_rest_pre_insert_(post_type)
WC_REST_Products_V1_Controller::prepare_item_for_database()
woocommerce_rest_pre_insert_(post_type)
WC_REST_Orders_V1_Controller::prepare_item_for_database()
woocommerce_rest_pre_insert_(post_type)
WC_REST_Coupons_V1_Controller::prepare_item_for_database()
woocommerce_rest_pre_insert_(post_type)
WC_REST_Legacy_Orders_Controller::prepare_item_for_database()
woocommerce_rest_pre_insert_(post_type)
WC_REST_Legacy_Coupons_Controller::prepare_item_for_database()
woocommerce_rest_pre_insert_(post_type)
woocommerce/includes/api/v1/class-wc-rest-webhooks-controller.php 535
return apply_filters( "woocommerce_rest_pre_insert_{$this->post_type}", $data, $request );
woocommerce/includes/api/v1/class-wc-rest-products-controller.php 728
return apply_filters( "woocommerce_rest_pre_insert_{$this->post_type}", $product, $request );
woocommerce/includes/api/v1/class-wc-rest-orders-controller.php 502
return apply_filters( "woocommerce_rest_pre_insert_{$this->post_type}", $order, $request );
woocommerce/includes/api/v1/class-wc-rest-coupons-controller.php 298
return apply_filters( "woocommerce_rest_pre_insert_{$this->post_type}", $coupon, $request );
woocommerce/includes/api/legacy/class-wc-rest-legacy-orders-controller.php 222
return apply_filters( "woocommerce_rest_pre_insert_{$this->post_type}", $order, $request );
woocommerce/includes/api/legacy/class-wc-rest-legacy-coupons-controller.php 162
return apply_filters( "woocommerce_rest_pre_insert_{$this->post_type}", $coupon, $request );

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

Не используется.