Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Filter the settings of email frequency when using the Extra Expiration Warning Emails Add On
<?php
/**
* Filter the settings of email frequency sent when using the Extra Expiration Warning Emails Add On
* https://www.paidmembershipspro.com/add-ons/extra-expiration-warning-emails-add-on/
*
* Update the $settings array to your list of number of days => ''.
* Read the Add On documentation for additional customization using this filter.
*/
function custom_pmproeewe_email_frequency( $settings = array() ) {
$settings = array(
10 => '',
30 => '',
60 => '',
);
return $settings;
}
add_filter( 'pmproeewe_email_frequency_and_templates', 'custom_pmproeewe_email_frequency', 10, 1 );
@laurenhagan0306

This comment has been minimized.

Copy link

@laurenhagan0306 laurenhagan0306 commented Apr 16, 2021

This recipe is included in the blog post on "Send Membership Expiration Notices 30, 60 and 90 days Prior" at Paid Memberships Pro here: https://www.paidmembershipspro.com/send-membership-expiration-notices-30-60-90-days-prior/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment