title: WooCommerce Subscriptions - Get product of a specific subscription
body: <p>Is there a way to get from <code>$product</code> from <code>$subscription</code>?</p>
  
  <p>Thanks to <a href="https://stackoverflow.com/questions/42791096/woocommerce-subscriptions-get-related-orders-ids-for-a-specific-subscription">this post</a>, I know that from <code>$subscription</code> I can get <code>$order</code>:</p>
  
  <pre><code>$order = $subscription-&gt;order;
  </code></pre>
  
  <p>Is this also possible?</p>
  
  <pre><code>$product = $subscription-&gt;product;
  </code></pre>
  
  <p>Or:</p>
  
  <pre><code>$product = $order-&gt;product;
  </code></pre>