WordPress at a glance
function is not described

PHPMailer\PHPMailer

PHPMailer::clearAllRecipients() public WP 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 5.7.2

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