PHPMailer\PHPMailer

PHPMailer::clearAddresses()publicWP 1.0

Clear all To recipients.

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

Хуков нет.

Возвращает

null. Ничего.

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

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

Код PHPMailer::clearAddresses() WP 6.1.1

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