Merge pull request #7574 from WillBrubaker/master

Filter the default attribute availability
This commit is contained in:
Mike Jolley 2015-03-02 10:02:09 +00:00
commit 92b15933ab
1 changed files with 1 additions and 1 deletions

View File

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