Skip to content

Instantly share code, notes, and snippets.

@strangerstudios
Created August 18, 2016 13:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save strangerstudios/669cb6439f79c5a50c6f15cbc8b5c785 to your computer and use it in GitHub Desktop.
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
/*
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