title: Get the Subscription id from the Order ID
body: <p>I'm trying to get the <strong><code>subscription id</code></strong> from the action hook <strong><code>woocommerce_order_status_changed</code></strong>.</p>
  
  <p>It gives me the <strong><code>order id</code></strong> which is changed every switch the customer makes.</p>
  
  <p>For example: If the <strong><code>subscription id</code></strong> is <strong><code>10</code></strong>, the original <strong><code>order id</code></strong> is <strong><code>9</code></strong>.</p>
  
  <p>Now every switch the customer made generates a new order id, which the action above gives you. At this point I have the <strong><code>$customer_id</code></strong>, <strong><code>$order_id</code></strong>, and the original <strong><code>post id</code></strong> which is <strong><code>9</code></strong>,<br></p>
  
  <p>How I can get the <strong><code>subscription id</code></strong> of the current order ?</p>
  
  <p>Thanks</p>