WC_Product::set_review_count()publicWC 1.0

Set review count. Read only.

{} It's a method of the class: WC_Product{}

No Hooks.

Return

null. Nothing.

Usage

$WC_Product = new WC_Product();
$WC_Product->set_review_count( $count );
$count(int) (required)
Product review count.

Code of WC_Product::set_review_count() WC 6.8.2

public function set_review_count( $count ) {
	$this->set_prop( 'review_count', absint( $count ) );
}