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

woocommerce_rest_prepare_order_note хук-фильтр . WC 1.0

Filter order note object returned from the REST API.

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

add_filter( 'woocommerce_rest_prepare_order_note', 'filter_function_name_982', 10, 3 );
function filter_function_name_982( $response, $note, $request ){
	// filter...

	return $response;
}
$response(WP_REST_Response)
The response object.
$note(WP_Comment)
Order note object used to create response.
$request(WP_REST_Request)
Request object.

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

WC_REST_Order_Notes_Controller::prepare_item_for_response()
woocommerce_rest_prepare_order_note
WC_REST_Order_Notes_V2_Controller::prepare_item_for_response()
woocommerce_rest_prepare_order_note
WC_REST_Order_Notes_V1_Controller::prepare_item_for_response()
woocommerce_rest_prepare_order_note
woocommerce/packages/woocommerce-rest-api/src/Controllers/Version3/class-wc-rest-order-notes-controller.php 61
return apply_filters( 'woocommerce_rest_prepare_order_note', $response, $note, $request );
woocommerce/packages/woocommerce-rest-api/src/Controllers/Version2/class-wc-rest-order-notes-v2-controller.php 114
return apply_filters( 'woocommerce_rest_prepare_order_note', $response, $note, $request );
woocommerce/packages/woocommerce-rest-api/src/Controllers/Version1/class-wc-rest-order-notes-v1-controller.php 362
return apply_filters( 'woocommerce_rest_prepare_order_note', $response, $note, $request );

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

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