BCC an Admin on Every LearnDash Notification Email
Copy a compliance or support mailbox on all LearnDash Notifications emails with one filter instead of editing each notification, and understand why the add-on sends a separate copy rather than a real blind-copy header.

Each notification in the LearnDash Notifications add-on (1.6.4) has an "Additional Recipient" field, stored under the meta key _ld_notifications_bcc, where you can type comma-separated addresses that receive a copy. Filling that field on thirty notifications, and remembering it on the thirty-first, is the kind of task that belongs in code. The add-on filters the field before using it, so a few lines copy a mailbox on everything. This snippet guide shows the filter, how to limit it to certain triggers, and what "BCC" actually means in this add-on, because it is not what the name suggests.
What the add-on does with the field
When a trigger fires, the notification model gathers recipients. It first applies the filter learndash_notification_bcc to the Additional Recipient string, passing the notification post ID, then splits the result on commas, strips spaces, and appends the chosen recipient types: the user, group leaders, administrators. Duplicates and invalid addresses are removed, the final list goes through learndash_notification_recipients_emails, and then the add-on loops over the list and sends one email per address through learndash_emails_send().
So the additional recipient is not a blind-copy header on the learner's email. It is a separate message to that address with the same subject and body. Nobody sees anyone else's address, which is good, but a mail client's "Bcc" field never comes into it, and a copy counts as a send against any rate limit your mail provider applies. Our recipients guide covers the other recipient types in the same detail.
Snippet: copy one mailbox on everything
<?php
/**
* Copy a mailbox on every LearnDash Notifications email.
*/
add_filter(
'learndash_notification_bcc',
function ( $bcc, $notification_id ) {
$extra = 'records@example.com';
$bcc = trim( (string) $bcc );
if ( '' === $bcc ) {
return $extra;
}
if ( false !== stripos( $bcc, $extra ) ) {
return $bcc;
}
return $bcc . ',' . $extra;
},
10,
2
);
The filter value is the raw string from the field, so append with a comma rather than returning an array. Keeping whatever an editor typed into the field means per-notification extras still work.
Snippet: only certain triggers
A records mailbox usually wants completions and certificates, not every lesson. The notification's trigger slug is stored in post meta, so read it:
<?php
add_filter(
'learndash_notification_bcc',
function ( $bcc, $notification_id ) {
$trigger = get_post_meta( $notification_id, '_ld_notifications_trigger', true );
if ( ! in_array( $trigger, array( 'complete_course', 'pass_quiz', 'approve_assignment' ), true ) ) {
return $bcc;
}
return '' === trim( (string) $bcc ) ? 'records@example.com' : $bcc . ',records@example.com';
},
10,
2
);
The trigger slugs are the keys from the add-on's trigger list: enroll_group, enroll_course, complete_course, complete_lesson, lesson_available, complete_topic, pass_quiz, fail_quiz, submit_quiz, complete_quiz, submit_essay, essay_graded, upload_assignment, approve_assignment, not_logged_in, course_expires and course_expires_after.
Opt-outs still apply
Before each send, the add-on looks up the WordPress user for the address and checks that user's subscription preferences; a user who has unsubscribed from a trigger is skipped. If the records mailbox belongs to a WordPress account, that account's preferences govern the copy. For a shared mailbox with no account, the check is skipped. The unsubscribe guide explains the preference page.
If you really need a Bcc header
Some compliance setups require the copy to be the same message, with the learner's address visible in the To header. The add-on gives no hook on the mail headers, but it does apply learndash_notifications_email_content immediately before the per-address loop and fires learndash_notifications_email_sent or learndash_notifications_email_failed after each send. You can attach a wp_mail filter in the first and remove it in the others, so that only notification emails are affected:
<?php
$learndash_notif_bcc_header = function ( $args ) {
$headers = is_array( $args['headers'] ) ? $args['headers'] : array_filter( array( $args['headers'] ) );
$headers[] = 'Bcc: records@example.com';
$args['headers'] = $headers;
return $args;
};
add_filter(
'learndash_notifications_email_content',
function ( $content ) use ( $learndash_notif_bcc_header ) {
add_filter( 'wp_mail', $learndash_notif_bcc_header );
return $content;
},
999
);
$learndash_notif_bcc_remove = function () use ( $learndash_notif_bcc_header ) {
remove_filter( 'wp_mail', $learndash_notif_bcc_header );
};
add_action( 'learndash_notifications_email_sent', $learndash_notif_bcc_remove );
add_action( 'learndash_notifications_email_failed', $learndash_notif_bcc_remove );
Two cautions. The content filter runs once per notification, but the send loop runs once per recipient, so the first recipient gets the Bcc and the removal happens after that first send; for notifications with several recipients, use the first snippet instead, which is simpler and copies every send. And a Bcc header on a message whose body says "Dear Ana" will land in the records mailbox addressed to Ana, which is usually what compliance wants and occasionally what support does not.
Copies and your mail provider's limits
Because every additional recipient is a separate send, a records copy doubles the number of messages the add-on hands to your mail server. A site that sends two thousand notification emails a day becomes a site that sends four thousand, and transactional providers and Google Workspace both apply daily and per-minute sending limits. Before copying everything, estimate the volume from the Logs tab over a typical week, and consider scoping the copy to the triggers that matter, as in the second snippet. If the copy is purely for record keeping, a cheaper alternative is to log instead of send: hook learndash_notifications_email_sent, which receives the address, the notification model and the trigger data, and write a row to a custom table or a log file. That gives you a searchable record without a second email per learner.
Checking it works
Fire a cheap trigger, such as completing a lesson with a test account, and read the add-on's Logs tab under LearnDash LMS, Notifications. Each log line lists the addresses the add-on is about to send to, so the extra mailbox should appear in the list. If it does not, another plugin or theme snippet may be returning early from the same filter at a lower priority, or the trigger slug in your condition does not match.
When to get help
The first snippet is a five-minute change. Routing copies into a ticketing system, archiving notification emails for audit, or sending through a dedicated transactional provider are jobs for our LearnDash services team; a LearnDash developer can also audit which of your notifications currently copy whom, using the hooks reference as the checklist.
Frequently asked questions
Is the Additional Recipient a real BCC?
No. The add-on sends a separate copy of the email to each address, so the extra recipient is never in a Bcc header, and each copy is a separate send.
Can I add several addresses?
Yes. Return a comma-separated string from the filter; the add-on splits on commas and validates each address.
Will the copy go out for delayed notifications?
Yes. Recipients, including additional ones, are resolved when the email is queued and stored with it, so the copy is sent when the delayed email is sent.
Why did the copy not arrive for a lesson notification?
If you scoped the filter by trigger, lesson completion is complete_lesson and is not in the example list. Otherwise check the Logs tab for the recipient list.
Add worldwincoder.com as a preferred source on Google, or open this article in your AI assistant to use it as a source.
