Caution: be careful with this – if the payment gateway you are using does not support the interval that you are adding this may result in undesirable behaviour.
If you need to add billing intervals to WooCommerce Subscriptions this can be done using the Subscriptions provided filter named woocommerce_subscription_period_interval_strings – a very basic example below adds “every 8th” to the intervals so that, for instance, you could have a subscription that will renew every 8th week which may be a better fit than every two months.
Not sure what to do with code snippets? See What Do I Do With These Code Snippets?
Leave a Reply
You must be registered and logged in to post a comment.