title: How to get best selling product category IDs in WooCommerce?
body: <p>I looking for way to display the 6 best selling product categories.
  this is what i got now:</p>
  <pre><code>$termsprent = get_terms(
      array(
          'taxonomy'    =&gt; 'product_cat',
          'hide_empty'  =&gt; true,
          'numberposts' =&gt; 4,
          'meta_key'    =&gt; 'total_sales',
          'orderby'     =&gt; 'meta_value_num',
          'order'       =&gt; 'desc',
      )
  );
  </code></pre>
  <p>does anyone knows a way to modify it so it will display the top selling product categories?</p>