Created
March 7, 2023 14:38
-
-
Save woogists/be588ba8766179e722ae3a9f1c38bc0d to your computer and use it in GitHub Desktop.
WooCommerce Subscriptions (Preserve Billing Schedule)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* By default, WooCommerce Subscriptions will calculate the next payment date for a subscription from the time of the last payment. | |
* This snippet changes it to calculate the next payment date from the scheduled payment date, not the time the payment was actually processed. | |
*/ | |
add_filter( 'wcs_calculate_next_payment_from_last_payment', '__return_false' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment