Forked from thenbrent/wcs-calculate-next-payment-from-last-payment.md
Created
October 5, 2016 22:11
-
-
Save lukecav/a785ee94650a850f9cebe92c6584e2a2 to your computer and use it in GitHub Desktop.
By default, WooCommerce Subscriptions will calculate the next payment date for a subscription from the time of the last payment. This plugin changes that to preserve the original schedule and calculate the next payment date from the scheduled payment date, not the time the payment was actually processed. For example, without this plugin, the due…
This file contains hidden or 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 | |
| /** | |
| * Plugin Name: WooCommerce Subscriptions - Preserve Billing Schedule | |
| * Plugin URI: | |
| * Description: By default, WooCommerce Subscriptions will calculate the next payment date for a subscription from the time of the last payment. This plugin changes it to preserve the original schedule and calculate the next payment date from the scheduled payment date, not the time the payment was actually processed. | |
| * Author: Prospress Inc. | |
| * Author URI: http://prospress.com/ | |
| * Version: 1.0 | |
| * | |
| * Copyright 2016 Prospress, Inc. (email : freedoms@prospress.com) | |
| * | |
| * This program is free software: you can redistribute it and/or modify | |
| * it under the terms of the GNU General Public License as published by | |
| * the Free Software Foundation, either version 3 of the License, or | |
| * (at your option) any later version. | |
| * | |
| * This program is distributed in the hope that it will be useful, | |
| * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| * GNU General Public License for more details. | |
| * | |
| * You should have received a copy of the GNU General Public License | |
| * along with this program. If not, see <http://www.gnu.org/licenses/>. | |
| * | |
| * @package WooCommerce Subscriptions | |
| * @author Prospress Inc. | |
| * @since 1.0 | |
| */ | |
| 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