WordPress at Your Fingertips
filter is not described

woocommerce_rest_preprocess_product_review filter-hook . WC 3.5.0

Filters a review after it is prepared for the database.

Allows modification of the review right after it is prepared for the database.

Usage

add_filter( 'woocommerce_rest_preprocess_product_review', 'filter_function_name_9375', 10, 2 );
function filter_function_name_9375( $prepared_review, $request ){
	// filter...

	return $prepared_review;
}
$prepared_review(array)
The prepared review data for wp_insert_comment.
$request(WP_REST_Request)
The current request.

Changelog

Since 3.5.0 Introduced.

Where the hook is called

WC_REST_Product_Reviews_Controller::prepare_item_for_database()
woocommerce_rest_preprocess_product_review
woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-reviews-controller.php 784
return apply_filters( 'woocommerce_rest_preprocess_product_review', $prepared_review, $request );

Where in WP core the hook is used WooCommerce

Usage not found.