Forked from andrewlimaza/my-pmpro-adjust-trial-ending-email.php
Last active
February 10, 2022 05:51
-
-
Save JarrydLong/eb924a761bdcd3f739a243ac029a7bbf to your computer and use it in GitHub Desktop.
Disable the trial ending email [Paid Memberships Pro]
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 | |
/** | |
* Intends to disable the reminder email | |
* Add this code to your Code Snippet/Custom Plugin - https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
*/ | |
function my_pmpro_adjust_trial_ending_email( $days ) { | |
return 999; //We don't want to send out reminders | |
} | |
add_filter( 'pmpro_email_days_before_trial_end', 'my_pmpro_adjust_trial_ending_email', 10, 1 ); // Trial Ending Soon Emails | |
add_filter( 'pmpro_email_days_before_expiration', 'my_pmpro_adjust_trial_ending_email', 10, 1 ); // Expiring Soon Emails |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment