diff --git a/classes/class-wc-product-variation.php b/classes/class-wc-product-variation.php index b2bf9ae3df9..e41e64a3254 100644 --- a/classes/class-wc-product-variation.php +++ b/classes/class-wc-product-variation.php @@ -75,6 +75,7 @@ class WC_Product_Variation extends WC_Product { foreach ($load_data as $key => $default) $this->$key = (isset($parent_custom_fields['_' . $key][0]) && $parent_custom_fields['_' . $key][0]!=='') ? $parent_custom_fields['_' . $key][0] : $default; $this->product_type = 'variable'; + $this->visibility = 'visible'; $this->variation_has_sku = $this->variation_has_stock = $this->variation_has_weight = $this->variation_has_length = $this->variation_has_width = $this->variation_has_height = $this->variation_has_price = $this->variation_has_sale_price = false;