WC_Product::set_rating_counts( array $counts )

Set rating counts. Read only.


Description Description


Parameters Parameters

$counts

(array) (Required) Product rating counts.


Top ↑

Source Source

File: includes/abstracts/abstract-wc-product.php

	public function set_rating_counts( $counts ) {
		$this->set_prop( 'rating_counts', array_filter( array_map( 'absint', (array) $counts ) ) );
	}

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.