WC_Product_Data_Store_CPT::update_rating_counts( WC_Product $product )
Update a products rating counts.
Description Description
Parameters Parameters
- $product
-
(Required) Product object.
Source Source
File: includes/data-stores/class-wc-product-data-store-cpt.php
public function update_rating_counts( $product ) { update_post_meta( $product->get_id(), '_wc_rating_count', $product->get_rating_counts( 'edit' ) ); }
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |