rest_preprocess_product_review

rest_preprocess_product_review

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

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('rest_preprocess_product_review') is found 1 times:

  • /includes/rest-api/Controllers/Version1/class-wc-rest-product-reviews-v1-controller.php line 509
    		if ( isset( $request['date_created_gmt'] ) ) {
    			$prepared_review['comment_date_gmt'] = $request['date_created_gmt'];
    		}
    
    		return apply_filters( 'rest_preprocess_product_review', $prepared_review, $request );
    	}
    
    	/**
    	 * Prepare links for the request.
    	 *
    	 * @param WP_Comment $review Product review object.