WordPress at Your Fingertips
function is not described

WC_Product_Grouped_Data_Store_CPT::sync_price() public WC 3.0.0

Sync grouped product prices with children.

{} It's a method of the class: WC_Product_Grouped_Data_Store_CPT{}

No Hooks.

Return

null. Nothing.

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.

Code of WC_Product_Grouped_Data_Store_CPT::sync_price() WC 5.7.0

public function sync_price( &$product ) {
	$this->update_prices_from_children( $product );
}