Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@strangerstudios
Created September 24, 2014 17:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save strangerstudios/db492d2339b92195fac8 to your computer and use it in GitHub Desktop.
Save strangerstudios/db492d2339b92195fac8 to your computer and use it in GitHub Desktop.
Disable PMPro Checkout Confirmation Emails
/*
Disable PMPro Checkout Confirmation Emails
Add this code to your active theme's fucntions.php
or a custom plugin.
*/
function my_pmpro_email_recipient($recipient, $email)
{
if(strpos($email->template, "checkout_") !== false)
$recipient = NULL;
return $recipient;
}
add_filter("pmpro_email_recipient", "my_pmpro_email_recipient", 10, 2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment