PHPMailer\PHPMailer

PHPMailer::clearBCCs()publicWP 1.0

Clear all BCC recipients.

Method of the class: PHPMailer{}

No Hooks.

Return

null. Nothing (null).

Usage

$PHPMailer = new PHPMailer();
$PHPMailer->clearBCCs();

PHPMailer::clearBCCs() code WP 6.5.4

public function clearBCCs()
{
    foreach ($this->bcc as $bcc) {
        unset($this->all_recipients[strtolower($bcc[0])]);
    }
    $this->bcc = [];
    $this->clearQueuedAddresses('bcc');
}