PHPMailer\PHPMailer

PHPMailer::clearAllRecipientspublicWP 1.0

Clear all recipient types.

Method of the class: PHPMailer{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

PHPMailer::clearAllRecipients() code WP 6.8.1

public function clearAllRecipients()
{
    $this->to = [];
    $this->cc = [];
    $this->bcc = [];
    $this->all_recipients = [];
    $this->RecipientsQueue = [];
}