WooCommerce, Remote Work & Other Fancy Stuff

Just another WordPress site

Add Custom Subscription Length

March 25, 2016 by Will Leave a Comment

By default, WooCommerce Subscriptions, provides a large number of subscription durations that should be sufficient for most users. However, some users may wish to provide custom subscription lengths. Fortunately WooCommerce Subscriptions provides a filter called woocommerce_subscription_lengths which can be leveraged to add custom subscription durations. Below is an example of how to implement this filter:

Not sure what to do with code snippets? See What Do I Do With These Code Snippets?

Filed Under: WooCommerce, WooCommerce Subscriptions Tagged With: snippet, snippets

Leave a Reply Cancel reply

You must be registered and logged in to post a comment.

© 2023 ยท WooCommerce, Remote Work & Other Fancy Stuff · Epstein didn't kill himself