How it Works

After installing and activating the plugin, the system will automatically send a notification to the member 7 days prior to their next subscription payment date. You can adjust this interval via the pmpro_upcoming_recurring_payment_reminder filter.

Installation

You must have the Paid Memberships Pro plugin installed and activated with a valid license type to use this Add On.

  1. Navigate to Memberships > Add Ons in the WordPress admin.
  2. Locate the Add On and click Install Now.
    • To install this plugin manually, download the .zip file above, then upload the compressed directory via the Plugins > Add New > Upload Plugin screen in the WordPress admin.
  3. Activate the plugin through the Plugins screen in the WordPress admin.

Running a Test

Site administrators can test this Add On without actually sending any emails to the user. To fully leverage this testing feature, you must add a constant to your wp-config.php file.

define( 'PMPROR_DEBUG', 'log' );

This method will output data about what the Recurring Emails Add On is doing to your site’s debug log. This constant accepts a value of either log or true:

  • log: Save the test information to a log file located in the plugin folder. For example: /wp-content/plugins/pmpro-recurring-emails/logs/pmpror.txt
  • true: Email the test information to your site’s admin email as specific under Settings > General in the WordPress admin.

For general guidance on how to locate the config file and add this constant, check out our guide on how to enable debugging and error logging as described in this article.

You must be logged in to your site admin in order to initiate a test. Once logged in, navigate to your site’s WordPress admin url with the variable ?pmpror_test=1 appended. For example:

https://yoursite.url/wp-admin/?pmpror_test=1

Now check either your log file or email to see the result of your test.

Adjusting the Recurring Email Interval

By default, the system will automatically send a notification to the member 7 days prior to their next subscription payment date. You can adjust this timeframe or add additional notifications using the pmpro_upcoming_recurring_payment_reminder filter.

The filter uses an array ($rec_array) to control how many days prior to the recurring payment due date a reminder is sent and what email template to send. The default email is ‘membership_recurring’.

For example: array ( 30 => 'membership_recurring', ) will send the email template ‘membership_recurring’ 30 days prior to the recurring payment due date. You can add multiple reminders by adding to the array as follows: array ( 30 => 'membership_recurring', 14 => 'membership_recurring', 7=> ' membership_recurring'). This code will send an initial reminder at 30 days out, then again at 14 and a final reminder 7 days before.

Action and Filter Hooks

`apply_filters( ‘pmprorm_send_reminder_to_user’, bool $send_mail, WP_User object $euser, MemberOrder $lastorder );`

`apply_filters( ‘pmpro_upcoming_recurring_payment_reminder’, array $reminders );`

This is a Standard Add On.

Standard Add Ons are included in all premium membership plans.