Merge pull request #7574 from WillBrubaker/master
Filter the default attribute availability
This commit is contained in:
commit
92b15933ab
|
@ -425,7 +425,7 @@ class WC_AJAX {
|
||||||
$attribute = array(
|
$attribute = array(
|
||||||
'name' => $taxonomy,
|
'name' => $taxonomy,
|
||||||
'value' => '',
|
'value' => '',
|
||||||
'is_visible' => 1,
|
'is_visible' => apply_filters( 'woocommerce_attribute_default_visibility', 1 ),
|
||||||
'is_variation' => 0,
|
'is_variation' => 0,
|
||||||
'is_taxonomy' => $taxonomy ? 1 : 0
|
'is_taxonomy' => $taxonomy ? 1 : 0
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue