WordPress at Your Fingertips
function is not described

WC_Product::set_review_count() public WC 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 5.5.2

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