WC_Product::set_review_count()
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() WC Product::set review count code WC 9.7.1
public function set_review_count( $count ) { $this->set_prop( 'review_count', absint( $count ) ); }