woocommerce_rest_product_review_query

woocommerce_rest_product_review_query

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_rest_product_review_query') is found 1 times:

  • /includes/rest-api/Controllers/Version3/class-wc-rest-product-reviews-controller.php line 312
    		 * @link https://developer.wordpress.org/reference/classes/wp_comment_query/
    		 * @param array           $prepared_args Array of arguments for WP_Comment_Query.
    		 * @param WP_REST_Request $request       The current request.
    		 */
    		$prepared_args = apply_filters( 'woocommerce_rest_product_review_query', $prepared_args, $request );
    
    		// Make sure that returns only reviews.
    		$prepared_args['type'] = 'review';
    
    		// Query reviews.
    		$query        = new WP_Comment_Query();