title: get Woocommerce attribute term thumbnails
body: <p>I have managed to figure out how to fetch attribute term names the code that works is this (i realize global $product isnt doing anything right now below):</p>
  
  <pre><code>global $product;
  
  $terms = get_terms("pa_melamine");
  
  foreach ( $terms as $term ) {
    echo "&lt;option&gt;" . $term-&gt;name . "&lt;/option&gt;";
  }   
  </code></pre>
  
  <p>And when i dump $terms i get this:</p>
  
  <pre><code>  public 'term_id' =&gt; string '69' (length=2)
    public 'name' =&gt; string 'Bistro' (length=6)
    public 'slug' =&gt; string 'bistro' (length=6)
    public 'term_group' =&gt; string '0' (length=1)
    public 'term_taxonomy_id' =&gt; string '69' (length=2)
    public 'taxonomy' =&gt; string 'pa_melamine' (length=11)
    public 'description' =&gt; string '' (length=0)
    public 'parent' =&gt; string '0' (length=1)
    public 'count' =&gt; string '1' (length=1)
    public 'meta_id' =&gt; string '85' (length=2)
    public 'woocommerce_term_id' =&gt; string '69' (length=2)
    public 'meta_key' =&gt; string 'order_pa_melamine' (length=17)
    public 'meta_value' =&gt; string '0' (length=1)
  </code></pre>
  
  <p>I am trying to get the thumbnail images i have attached to attribute terms, they are swatches. I have no idea how i can fetch the thumbnail attachment.</p>
  
  <p>If anyone needs more info please let me know.</p>