From de6c9869538571e7bdbe169d6bef7637e7451a86 Mon Sep 17 00:00:00 2001 From: Will Date: Thu, 26 Feb 2015 11:23:19 -0500 Subject: [PATCH] Filter the default attribute availability --- includes/class-wc-ajax.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-wc-ajax.php b/includes/class-wc-ajax.php index 02a0ab7ebca..98ccfa246ec 100644 --- a/includes/class-wc-ajax.php +++ b/includes/class-wc-ajax.php @@ -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 );