Forked from kimcoleman/custom_pmpro_upcoming_recurring_payment_reminder.php
Last active
June 23, 2021 08:57
-
-
Save michaelbeil/bb83dfaf20c8b45b460fb1af7d57def3 to your computer and use it in GitHub Desktop.
Filter to modify the days prior to renewal that the Recurring Payment Email Reminders Add On sends members the membership_recurring email notifcation.
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 | |
/** | |
* Filter to modify the days prior to renewal that the Recurring Payment Email Reminders Add On | |
* sends members the membership_recurring email notifcation. | |
* | |
* Add this code below to your PMPro Customizations Plugin - https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
*/ | |
function custom_pmpro_upcoming_recurring_payment_reminder( $rec_array ) { | |
$rec_array = array ( 30 => 'membership_recurring', 14 => 'membership_recurring', 7 => ' membership_recurring' ); | |
return $rec_array; | |
} | |
add_filter('pmpro_upcoming_recurring_payment_reminder', 'custom_pmpro_upcoming_recurring_payment_reminder', 10, 1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment