WC_Product_Grouped_Data_Store_CPT::handle_updated_props()protectedWC 3.0.0

Handle updated meta props after updating meta data.

Method of the class: WC_Product_Grouped_Data_Store_CPT{}

No Hooks.

Return

null. Nothing (null).

Usage

// protected - for code of main (parent) or child class
$result = $this->handle_updated_props( $product );
$product(WC_Product) (required) (passed by reference — &)
Product object.

Changelog

Since 3.0.0 Introduced.

WC_Product_Grouped_Data_Store_CPT::handle_updated_props() code WC 9.4.2

protected function handle_updated_props( &$product ) {
	if ( in_array( 'children', $this->updated_props, true ) ) {
		$this->update_prices_from_children( $product );
	}
	parent::handle_updated_props( $product );
}