Created
September 24, 2014 17:43
-
-
Save strangerstudios/db492d2339b92195fac8 to your computer and use it in GitHub Desktop.
Disable PMPro Checkout Confirmation Emails
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
/* | |
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