Added filter woocommerce_attribute_label
This commit is contained in:
parent
68f7a61100
commit
46812dad9c
|
@ -1186,10 +1186,12 @@ class Woocommerce {
|
|||
|
||||
$label = $wpdb->get_var( $wpdb->prepare( "SELECT attribute_label FROM ".$wpdb->prefix."woocommerce_attribute_taxonomies WHERE attribute_name = %s;", $name ) );
|
||||
|
||||
if ($label) return $label; else return ucfirst($name);
|
||||
if ( ! $label) $label = ucfirst($name);
|
||||
} else {
|
||||
return $name;
|
||||
$label = $name;
|
||||
}
|
||||
|
||||
return apply_filters('woocommerce_attribute_label', $label);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue