You can use their helper function which is probably the most complete: if( class_exists( 'WC_Subscriptions_Product' ) ...
in the WooCommerce Subscriptions code base relating to orders and the cart.
Function to check if a WooCommerce order contains a free trial (via the Subscriptions extension) - order_has_trial.php.
include all renewal orders and potentially an initial order (if the subscription was created as a ...
* Check if a given order is a subscription renewal order. *. * @param WC_Order| int $order The WC_Order object or ID of a WC_Order order.
allow you to capture more residual revenue — and all you have to do is ship the orders.
If you're using the Woocommerce Subscriptions plugin, you may find it
But what happens when testing a system is dependent on an event that.
Not your computer? Use Guest mode to sign in privately. Learn more. Next. Create account. Afrikaans. azərbaycan. català. Čeština. Dansk. Deutsch. eesti ...
So what my code does is, when a renewal is triggered, I hook into processed_subscription_payment with my function. So this code is run only ...