/** * Read product data. * * @since 2.7.0 */ protected function read_product_data(&$product) { parent::read_product_data($product); $this->read_children($product); // Set directly since individual data needs changed at the WC_Product_Variation level -- these datasets just pull. $this->read_price_data($product); $this->read_price_data($product, true); $this->read_variation_attributes($product); }