The Subscriptions plugin already gives you the ability to create a day-long subscription, a month-long subscription, and subscriptions that can renew every other week. While it has a lot of intervals, it can't possibly have every one. If you want to have a subscription that renews every tenth week, you'll have to create a custom subscription interval. Using filters in Subscriptions, we can easily add this.
You must have the WooCommerce Subscriptions plugin installed and activated on your site. You should also have a subscription product already created.
In order to create a custom subscription interval, go through the following steps:
Open up your theme's
functions.php
file, located underwp-content/themes/your-theme-name/
, or create a custom WooCommerce plugin and open up that file.Add the following line of code. This tells Subscriptions to look for your modifications to the possible intervals:
add_filter( 'woocommerce_subscription_period_interval_strings...