PHPMailer\PHPMailer

PHPMailer::clearAllRecipients()publicWP 1.0

Clear all recipient types.

{} It's a method of the class: PHPMailer{}

No Hooks.

Return

null. Nothing.

Usage

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

Code of PHPMailer::clearAllRecipients() WP 6.0

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