title: Get the values for a specific attribute from a product ID
body: <p>I am trying to get products custom attribute with options values. This is how I get a normal attribute:</p>
  
  <pre><code>$myproducts['data']['discount'] = $product-&gt;get_attribute('pa_discount');
  </code></pre>
  
  <p>Does somebody have any idea how I get my attribute Size with options S, M and L?</p>
  
  <p>Thanks</p>