title: Get WooCommerce Product Attribute label name
body: <p>Variable/variations in woocommerce products.</p>
  
  <p>I can do this to get the attribute value from pa_size: <code>&lt;?php echo $product_variation-&gt;get_attributes()['pa_size']; ?&gt;</code> which is somewhere in <code>/wp-admin/edit.php?post_type=product&amp;page=product_attributes</code>.</p>
  
  <p>But how do I get the <code>pa_size</code> label (in this case: 'Size')? Have tried to fetch everything based on post_type, page and then the "term_group". But that won't work. I can see that this usually is visible per default, but this is a custom solution. Also in <a href="https://github.com/woocommerce/woocommerce/blob/3.8.0/templates/single-product/product-attributes.php" rel="nofollow noreferrer">https://github.com/woocommerce/woocommerce/blob/3.8.0/templates/single-product/product-attributes.php</a> I can't see where they print the actual label, only the "Attribute child label and value". But not actual parent (pa_size => Size).</p>
  
  <p>Have googled like a maniac for hours now.</p>