I'm trying to get the subscription id from the action hook woocommerce_order_status_changed.
It gives me the order id which is changed with every switch the customer makes.
For example: If the subscription id is 10, the original order id is 9.
Now every switch the customer made generates a new order id, which the action above gives you. At this point I have the $customer_id, $order_id, and the original post id which is 9,
How I can get the subscription id of the current order?