WC_Product::set_review_count()publicWC 1.0

Set review count. Read only.

Method of the class: WC_Product{}

No Hooks.

Return

null. Nothing (null).

Usage

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

WC_Product::set_review_count() code WC 8.7.0

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