WC_Product_Grouped_Data_Store_CPT::sync_price()
Sync grouped product prices with children.
Method of the class: WC_Product_Grouped_Data_Store_CPT{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WC_Product_Grouped_Data_Store_CPT = new WC_Product_Grouped_Data_Store_CPT(); $WC_Product_Grouped_Data_Store_CPT->sync_price( $product );
- $product(WC_Product|int) (required) (passed by reference — &)
- Product object or product ID.
Changelog
Since 3.0.0 | Introduced. |
WC_Product_Grouped_Data_Store_CPT::sync_price() WC Product Grouped Data Store CPT::sync price code WC 9.4.2
public function sync_price( &$product ) { $this->update_prices_from_children( $product ); }