Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save michaelbeil/bb83dfaf20c8b45b460fb1af7d57def3 to your computer and use it in GitHub Desktop.
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.
<?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