PHPMailer\PHPMailer

PHPMailer::clearBCCs()publicWP 1.0

Clear all BCC recipients.

Метод класса: PHPMailer{}

Хуков нет.

Возвращает

null. Ничего.

Использование

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

Код PHPMailer::clearBCCs() WP 6.1.1

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