WordPress at Your Fingertips
filter is not described

woocommerce_rest_tax_query filter-hook . WC 1.0

Filter arguments, before passing to $wpdb->get_results(), when querying taxes via the REST API.

Usage

add_filter( 'woocommerce_rest_tax_query', 'filter_function_name_8975', 10, 2 );
function filter_function_name_8975( $prepared_args, $request ){
	// filter...

	return $prepared_args;
}
$prepared_args(array)
Array of arguments for $wpdb->get_results().
$request(WP_REST_Request)
The current request.

Where the hook is called

WC_REST_Taxes_V1_Controller::get_items()
woocommerce_rest_tax_query
Taxes::get_items()
woocommerce_rest_tax_query
woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-taxes-v1-controller.php 235
$prepared_args = apply_filters( 'woocommerce_rest_tax_query', $prepared_args, $request );
woocommerce/packages/woocommerce-admin/src/API/Taxes.php 82
$prepared_args = apply_filters( 'woocommerce_rest_tax_query', $prepared_args, $request );

Where in WP core the hook is used WooCommerce

Usage not found.