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/a1a3219dbc01dc043788749a5433368c to your computer and use it in GitHub Desktop.
Save femiyb/a1a3219dbc01dc043788749a5433368c to your computer and use it in GitHub Desktop.
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(
1 => 'membership_expiring',
14 => 'membership_expiring',
);
return $settings;
}
add_filter( 'pmproeewe_email_frequency_and_templates', 'custom_pmproeewe_email_frequency', 10, 1 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment