Title: Bug in wc-attribute-functions.php ?
Last modified: August 22, 2016

---

# Bug in wc-attribute-functions.php ?

 *  [friedhelm](https://wordpress.org/support/users/friedhelm/)
 * (@friedhelm)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/bug-in-wc-attribute-functionsphp/)
 * I recognized, that the labels in the product attributes are wrong displayed:
   
   wc_attribute_label( $name ) returns the attribute name, but not the label.
 * in wc-attribute-functions.php in about line 65
 * `return apply_filters( 'woocommerce_attribute_label', $name, $label );`
 *  $name and $label have to be turned around to $label and $name:
 * `return apply_filters( 'woocommerce_attribute_label', $label, $name );`
 * Now the Label is displayed, not the name.
 * [https://wordpress.org/plugins/woocommerce/](https://wordpress.org/plugins/woocommerce/)

The topic ‘Bug in wc-attribute-functions.php ?’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [attribute](https://wordpress.org/support/topic-tag/attribute/)
 * [label](https://wordpress.org/support/topic-tag/label/)
 * [name](https://wordpress.org/support/topic-tag/name/)
 * [variable](https://wordpress.org/support/topic-tag/variable/)

 * 0 replies
 * 1 participant
 * Last reply from: [friedhelm](https://wordpress.org/support/users/friedhelm/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/bug-in-wc-attribute-functionsphp/)
 * Status: not resolved