Allow WC_Product_Variation children to extend meta
When SHA: 50a0577b81
introduced `$variation_level_meta_data` and
`$variation_inherited_meta_data`, it set their access to `private`.
Child classes of `WC_Product_Variation` should be able to extend these
properties to allow them to take advantage of the parent's `__isset()`
and `__get()` methods.
Related to #6065
This commit is contained in:
parent
50a0577b81
commit
1a15cb03bd
|
@ -38,7 +38,7 @@ class WC_Product_Variation extends WC_Product {
|
|||
public $variation_has_downloadable_files = true;
|
||||
|
||||
/** @private array Data which is only at variation level - no inheritance plus their default values if left blank. */
|
||||
private $variation_level_meta_data = array(
|
||||
protected $variation_level_meta_data = array(
|
||||
'downloadable' => 'no',
|
||||
'virtual' => 'no',
|
||||
'manage_stock' => 'no',
|
||||
|
@ -53,7 +53,7 @@ class WC_Product_Variation extends WC_Product {
|
|||
);
|
||||
|
||||
/** @private array Data which can be at variation level, otherwise fallback to parent if not set. */
|
||||
private $variation_inherited_meta_data = array(
|
||||
protected $variation_inherited_meta_data = array(
|
||||
'tax_class' => '',
|
||||
'backorders' => 'no',
|
||||
'sku' => '',
|
||||
|
|
Loading…
Reference in New Issue