Created
August 18, 2016 13:35
-
-
Save strangerstudios/669cb6439f79c5a50c6f15cbc8b5c785 to your computer and use it in GitHub Desktop.
Disable the check pending reminder email with PMPro and PMPro Pay by Check
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
/* | |
Disable the check pending reminder email with PMPro and PMPro Pay by Check | |
Add this code to a custom plugin. | |
*/ | |
function disable_pbc_reminder_email($recipient, $email) { | |
if($email->template == 'check_pending_reminder') //maybe check for check_pending template as well | |
$recipient = ''; | |
return $recipient; | |
} | |
add_filter("pmpro_email_recipient", "disable_pbc_reminder_email", 10, 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment