Open
Change default subscription renewal pre-notification window from 7 to 14 days#259
Conversation
Copilot
AI
changed the title
[WIP] Change default subscription pre-notification period to 14 days
Change default subscription renewal pre-notification window from 7 to 14 days
Jun 29, 2026
Member
|
@copilot use |
Contributor
Author
Updated in commit |
rvdsteege
approved these changes
Jun 29, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Default pre-notification was effectively one week before renewal, which is too short for SEPA Direct Debit flows where 14-day notice is commonly required unless otherwise agreed. This updates the default scheduling and suppression logic to a 14-day window while preserving compatibility with existing stored metadata.
Scheduling window updated to 14 days
get_subscriptions_wp_query_that_require_notification()now targets renewals in+2 weeks(instead of+1 week).Duplicate-notification suppression aligned to 14 days
meets_notification_requirements()now suppresses re-sends if a notification exists within the last 2 weeks (instead of 1 week).Metadata key migration with backward compatibility
notification_date_2_weeks.notification_date_renewal, then legacynotification_date_1_weekwhen needed.Focused test coverage expanded
notification_date_2_weeks)notification_date_renewal)notification_date_1_week)Changelog