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

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

Filter webhook object returned from the REST API.

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

add_filter( 'woocommerce_rest_prepare_(post_type)', 'filter_function_name_4382', 10, 3 );
function filter_function_name_4382( $response, $webhook, $request ){
	// filter...

	return $response;
}
$response(WP_REST_Response)
The response object.
$webhook(WC_Webhook)
Webhook object used to create response.
$request(WP_REST_Request)
Request object.

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

WC_REST_Webhooks_V1_Controller::prepare_item_for_response()
woocommerce_rest_prepare_(post_type)
WC_REST_Products_V1_Controller::prepare_item_for_response()
woocommerce_rest_prepare_(post_type)
WC_REST_Orders_V1_Controller::prepare_item_for_response()
woocommerce_rest_prepare_(post_type)
WC_REST_Coupons_V1_Controller::prepare_item_for_response()
woocommerce_rest_prepare_(post_type)
WC_REST_Order_Refunds_V1_Controller::prepare_item_for_response()
woocommerce_rest_prepare_(post_type)
WC_REST_Legacy_Products_Controller::prepare_item_for_response()
woocommerce_rest_prepare_(post_type)
WC_REST_Legacy_Orders_Controller::prepare_item_for_response()
woocommerce_rest_prepare_(post_type)
WC_REST_Legacy_Coupons_Controller::prepare_item_for_response()
woocommerce_rest_prepare_(post_type)
WC_REST_Webhooks_V2_Controller::prepare_item_for_response()
woocommerce_rest_prepare_(post_type)
woocommerce/includes/api/v1/class-wc-rest-webhooks-controller.php 581
return apply_filters( "woocommerce_rest_prepare_{$this->post_type}", $response, $webhook, $request );
woocommerce/includes/api/v1/class-wc-rest-products-controller.php 630
return apply_filters( "woocommerce_rest_prepare_{$this->post_type}", $response, $post, $request );
woocommerce/includes/api/v1/class-wc-rest-orders-controller.php 357
return apply_filters( "woocommerce_rest_prepare_{$this->post_type}", $response, $post, $request );
woocommerce/includes/api/v1/class-wc-rest-coupons-controller.php 218
return apply_filters( "woocommerce_rest_prepare_{$this->post_type}", $response, $post, $request );
woocommerce/includes/api/v1/class-wc-rest-order-refunds-controller.php 230
return apply_filters( "woocommerce_rest_prepare_{$this->post_type}", $response, $post, $request );
woocommerce/includes/api/legacy/class-wc-rest-legacy-products-controller.php 195
return apply_filters( "woocommerce_rest_prepare_{$this->post_type}", $response, $post, $request );
woocommerce/includes/api/legacy/class-wc-rest-legacy-orders-controller.php 154
return apply_filters( "woocommerce_rest_prepare_{$this->post_type}", $response, $post, $request );
woocommerce/includes/api/legacy/class-wc-rest-legacy-coupons-controller.php 91
return apply_filters( "woocommerce_rest_prepare_{$this->post_type}", $response, $post, $request );
woocommerce/includes/api/v2/class-wc-rest-webhooks-v2-controller.php 73
return apply_filters( "woocommerce_rest_prepare_{$this->post_type}", $response, $webhook, $request );

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

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