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

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

Filter the query arguments for a request.

Enables adding extra arguments or setting defaults for an order collection request.

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

add_filter( 'woocommerce_rest_orders_prepare_object_query', 'filter_function_name_7505', 10, 2 );
function filter_function_name_7505( $args, $request ){
	// filter...

	return $args;
}
$args(массив)
Key value array of query var to query value.
$request(WP_REST_Request)
The request used.

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

WC_REST_Orders_V2_Controller::prepare_objects_query()
woocommerce_rest_orders_prepare_object_query
woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php 471
$args = apply_filters( 'woocommerce_rest_orders_prepare_object_query', $args, $request );

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

woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php 139
add_filter( 'woocommerce_rest_orders_prepare_object_query', array( $this, 'network_orders_filter_args' ) );
woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php 141
remove_filter( 'woocommerce_rest_orders_prepare_object_query', array( $this, 'network_orders_filter_args' ) );