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

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

Filter the query arguments for a request.

Enables adding extra arguments or setting defaults for a post collection request.

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

add_filter( 'woocommerce_rest_(post_type)_query', 'filter_function_name_1437', 10, 2 );
function filter_function_name_1437( $args, $request ){
	// filter...

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

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

WC_REST_Posts_Controller::get_items()
woocommerce_rest_(post_type)_query
woocommerce/includes/abstracts/abstract-wc-rest-posts-controller.php 351
$args = apply_filters( "woocommerce_rest_{$this->post_type}_query", $args, $request );

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

includes/api/v1/class-wc-rest-coupons-controller.php 50
add_filter( "woocommerce_rest_{$this->post_type}_query", array( $this, 'query_args' ), 10, 2 );
includes/api/v1/class-wc-rest-order-refunds-controller.php 51
add_filter( "woocommerce_rest_{$this->post_type}_query", array( $this, 'query_args' ), 10, 2 );
includes/api/v1/class-wc-rest-orders-controller.php 50
add_filter( "woocommerce_rest_{$this->post_type}_query", array( $this, 'query_args' ), 10, 2 );
includes/api/v1/class-wc-rest-products-controller.php 50
add_filter( "woocommerce_rest_{$this->post_type}_query", array( $this, 'query_args' ), 10, 2 );
includes/api/v2/class-wc-rest-network-orders-v2-controller.php 136
add_filter( 'woocommerce_rest_orders_prepare_object_query', array( $this, 'network_orders_filter_args' ) );
includes/api/v2/class-wc-rest-network-orders-v2-controller.php 138
remove_filter( 'woocommerce_rest_orders_prepare_object_query', array( $this, 'network_orders_filter_args' ) );
includes/api/v2/class-wc-rest-product-variations-v2-controller.php 46
add_filter( "woocommerce_rest_{$this->post_type}_query", array( $this, 'add_product_id' ), 9, 2 );