WordPress at a glance
filter is not described

woocommerce_rest_product_review_query filter-hook . WC 3.5.0

Filters arguments, before passing to WP_Comment_Query, when querying reviews via the REST API.

Usage

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

	return $prepared_args;
}
$prepared_args(array)
Array of arguments for WP_Comment_Query.
$request(WP_REST_Request)
The current request.

Changelog

Since 3.5.0 Introduced.

Where the hook is called

WC_REST_Product_Reviews_Controller::get_items()
woocommerce_rest_product_review_query
woocommerce/packages/woocommerce-rest-api/src/Controllers/Version3/class-wc-rest-product-reviews-controller.php 306
$prepared_args = apply_filters( 'woocommerce_rest_product_review_query', $prepared_args, $request );

Where the hook is used (in WC core)

Usage not found!