Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kimcoleman/e1bcd79ec99da0f357995ce3d3ce06a8 to your computer and use it in GitHub Desktop.
Save kimcoleman/e1bcd79ec99da0f357995ce3d3ce06a8 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', );
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