WC_Product::set_review_count
Set review count. Read only.
Method of the class: WC_Product{}
No Hooks.
Returns
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() WC Product::set review count code WC 10.6.2
public function set_review_count( $count ) {
$this->set_prop( 'review_count', absint( $count ) );
}