Product::get_reviews( int $count = 12 )
Summary
Get the reviews associated with this product
Parameters
- $count
-
(int) (Optional) The number of reviews to return. Will not return more than the number in the review cache.
Default value: 12
Return
(array) The most recent reviews cached for the product
Source
File: src/BigCommerce/Post_Types/Product/Product.php
if ( is_array( $cached ) ) { return array_slice( $cached, 0, $count ); } return []; } /**