I'm looking for a way to apply coupons to existing woocommerce subscriptions. I create coupons and then under usage restrictions I set the allowed emails to the be the email of a certain user/subscriber.
I would like these coupons to be automatically applied to the users subscription. I want the discount to be visible on the users subscription page. That way it's clear for the user how much the subscription will be discounted on the next renewal.
Is there an easy way to achieve this?
I was hoping I could something with the wcs_get_users_subscriptions filter and then add a function which applies coupons to existing coupons from there?