Created
October 12, 2017 09:41
-
-
Save andrewlimaza/037841b8f97b9788c6717f4b26ff625f to your computer and use it in GitHub Desktop.
Change when the expiration email is sent out for PMPro
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 | |
/** | |
* Change when the expiration email get's sent out to users. | |
* Filter - https://www.paidmembershipspro.com/hook/pmpro_email_days_before_expiration/ | |
*/ | |
function my_pmpro_email_expiration_date_change( $days ) { | |
return 3; //change this value to the number of days before the expiration date. | |
} | |
add_filter( 'pmpro_email_days_before_expiration', 'my_pmpro_email_expiration_date_change;' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment