BCC an additional email on PMPro admin emails.
|Add bcc for PMPro admin emails|
|function my_pmpro_email_headers_admin_emails($headers, $email)|
|//bcc emails already going to admin_email|
|if(strpos($email->template, "_admin") !== false)|
|$headers = "Bcc:" . "email@example.com";|
|add_filter("pmpro_email_headers", "my_pmpro_email_headers_admin_emails", 10, 2);|
@837y4rt8 There's a forked version of this gist that also handles approval emails, you can find it here: