WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Получай пассивный доход от сайта с помощью браузерных PUSH уведомлений
фильтр не описан

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

Filter the query arguments, before passing them to get_terms().

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

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

add_filter( 'woocommerce_rest_(taxonomy)_query', 'filter_function_name_7690', 10, 2 );
function filter_function_name_7690( $prepared_args, $request ){
	// filter...

	return $prepared_args;
}
$prepared_args(массив)
Array of arguments to be passed to get_terms.
$request(WP_REST_Request)
The current request.

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

WC_REST_Terms_Controller::get_items()
woocommerce_rest_(taxonomy)_query
woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-terms-controller.php 321
$prepared_args = apply_filters( "woocommerce_rest_{$taxonomy}_query", $prepared_args, $request );

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

woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-coupons-v1-controller.php 50
add_filter( "woocommerce_rest_{$this->post_type}_query", array( $this, 'query_args' ), 10, 2 );
woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-refunds-v1-controller.php 51
add_filter( "woocommerce_rest_{$this->post_type}_query", array( $this, 'query_args' ), 10, 2 );
woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php 50
add_filter( "woocommerce_rest_{$this->post_type}_query", array( $this, 'query_args' ), 10, 2 );
woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php 50
add_filter( "woocommerce_rest_{$this->post_type}_query", array( $this, 'query_args' ), 10, 2 );
woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-network-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-network-orders-v2-controller.php 141
remove_filter( 'woocommerce_rest_orders_prepare_object_query', array( $this, 'network_orders_filter_args' ) );