WC_Product_Grouped_Data_Store_CPT::handle_updated_props
Handle updated meta props after updating meta data.
Method of the class: WC_Product_Grouped_Data_Store_CPT{}
No Hooks.
Returns
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() WC Product Grouped Data Store CPT::handle updated props code WC 10.3.5
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 );
}