added a filter to make it possible to override if an attribute is variation by default, #10869

This commit is contained in:
Harald Rosberg 2016-05-06 12:49:06 +02:00
parent 0664797f92
commit 84887409a0
1 changed files with 1 additions and 1 deletions

View File

@ -557,7 +557,7 @@ class WC_AJAX {
'name' => $taxonomy,
'value' => '',
'is_visible' => apply_filters( 'woocommerce_attribute_default_visibility', 1 ),
'is_variation' => 0,
'is_variation' => apply_filters( 'woocommerce_attribute_default_is_variation', 0 ),
'is_taxonomy' => $taxonomy ? 1 : 0
);