title: How get variation's stock quantity woocommerce
body: <p>I'm developing a theme for wordpress and woocommerce.</p>
  
  <p>I need show variation's stock.</p>
  
  <pre><code>&lt;p class="stock-m13"&gt;&lt;?php echo $product-&gt;get_stock_quantity(); ?&gt;&lt;/p&gt;
  </code></pre>
  
  <p>(here: <a href="https://stackoverflow.com/questions/20244423/how-to-get-the-stock-quantity-of-an-article-from-woocommerce">How to get the stock quantity of an article from woocommerce?</a>) but this code only show me the global stock quantity, not each variation quantity.</p>
  
  <p>I need another function to get variation quantity?
  Or it is possible that my code is not completed (I think it because I have used Twenty Fifteen theme and variation quantity is showed)?</p>
  
  <p>I try to get max quantity with this:</p>
  
  <pre><code>&lt;?php
      foreach ($product-&gt;get_available_variations() as $key) {
          echo $key['max_qty'] .'&lt;br/&gt;';
      }
  ?&gt;
  </code></pre>
  
  <p>And I get it, but I don't know if this is useful when the stock goes down.</p>