Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

example of Multiple emails #243

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions email/bcc-email-addresses-on-notifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* layout: snippet
* collection: email
* category: bcc
* link: https://www.paidmembershipspro.com/bcc-additional-email-addresses-on-member-or-admin-notifications/
*
* You can add this recipe to your site by creating a custom plugin
* or using the Code Snippets plugin available for free in the WordPress repository.
Expand All @@ -21,6 +22,7 @@ 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 protected]';
// $headers[] = 'Bcc:' . '[email protected],[email protected],[email protected]'; //Example with multiple BCC emails
}

return $headers;
Expand Down