Product Icon

WooCommerce Subscriptions

Let customers subscribe to your products or services and pay on a weekly, monthly or annual basis.

Filter to determine if renewal order should be generated

I would like a bool filter to be able to override if a renewal order is generated/prepared.

Ideally it would come at the very beginning of WC_Subscriptions_Manager::prepare_renewal(), such as:

public static function prepare_renewal( $subscription_id ) {
if ( ! apply_filters( ‘prepare_renewal’, true, $subscription_id ) ) return null;

}

I have found a way to do this already, but it is not as clean or maintainable as it would be if there were a filter.

Thanks for the consideration

Author

Current Status

Open

Last updated: December 15, 2020

0 comments

Log in to comment on this feature request.

Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.