WC_Product::get_rating_counts()
Get rating count.
Method of the class: WC_Product{}
No Hooks.
Return
Array
. of counts
Usage
$WC_Product = new WC_Product(); $WC_Product->get_rating_counts( $context );
- $context(string)
- What the value is for. Valid values are view and edit.
Default: 'view'
WC_Product::get_rating_counts() WC Product::get rating counts code WC 9.5.1
public function get_rating_counts( $context = 'view' ) { return $this->get_prop( 'rating_counts', $context ); }