Created
February 14, 2022 23:41
-
-
Save kerijacoby/b1db7457ecfa1efb436d00c6bd5e9bcc to your computer and use it in GitHub Desktop.
Send emails at 30 days prior to membership expiration.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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( | |
30 => '', | |
); | |
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