Created
May 3, 2019 17:28
-
-
Save femiyb/f4f3fece36cda46b44a7c645c9f10fa8 to your computer and use it in GitHub Desktop.
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
<?php | |
//forward all admin emails | |
function my_pmpro_forward_member_emails($recipient, $email) | |
{ | |
if(strpos($email->template, '_admin')) | |
$recipient = 'email@example.com'; | |
return $recipient; | |
} | |
add_filter("pmpro_email_recipient", "my_pmpro_forward_member_emails", 10, 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment