title: Woocommerce attribute returns "attribute_pa_attribute_name"
body: <p>Here is the loop I go through to get the product attributes, I get the product and then its variations in the data it provides the the attributes in the array is attribute_pa_color, attribute_pa_size... I want to return just the name like &quot;color&quot; not &quot;attribute_pa_color&quot;</p>
  <pre><code>$product = wc_get_product( $id );
  $available_variations = $product-&gt;get_available_variations();
  foreach ($available_variations as $attribute_name=&gt; $value) 
  { 
   // $attribute_name returns &quot;attribute_pa_color&quot; for example
  }
  </code></pre>