Skip to content

Instantly share code, notes, and snippets.

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