Error thrown

Call to undefined method WooCommerce::attribute_label()