Forked from andrewlimaza/my_pmpro_email_expiration.php
Last active
June 6, 2025 13:12
-
-
Save dwanjuki/ba8f1631bb1152a7795dbb8084ecf915 to your computer and use it in GitHub Desktop.
Change when the expiration email is sent out for PMPro
This file contains hidden or 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. | |
* | |
* You can add this recipe to your site by creating a custom plugin | |
* or using the Code Snippets plugin available for free in the WordPress repository. | |
* Read this companion article for step-by-step directions on either method. | |
* https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
*/ | |
function my_pmpro_email_expiration_date_change( $days ) { | |
return 1; // 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