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 Plus members can install the add on from the Memberships > Add Ons admin page.
- Or, download the plugin and upload the ‘pmpro-recurring-emails’ directory to the ‘/wp-content/plugins/’ directory of your site.
- Activate the plugin through the ‘Plugins’ menu in WordPress.
Running a Test
Site administrators can test this Add On without actually sending any emails to the user. To fully leverage this testing feature, enable debugging and error logging as described in this article. This method will output data about what the Recurring Emails Add On is doing to your site’s debug log.
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:
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 specifies a key => value array of days and the email template, without the file extension, to send. The default email is ‘recurring_payment’.
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 );