WordPress at a glance
function is not described

PHPMailer\PHPMailer

PHPMailer::clearQueuedAddresses() public WP 1.0

Clear queued addresses of given kind.

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

No Hooks.

Return

null. Nothing.

Usage

$PHPMailer = new PHPMailer();
$PHPMailer->clearQueuedAddresses( $kind );
$kind(string) (required)
'to', 'cc', or 'bcc'

Code of PHPMailer::clearQueuedAddresses() WP 5.7.2

<?php
public function clearQueuedAddresses($kind)
{
    $this->RecipientsQueue = array_filter(
        $this->RecipientsQueue,
        static function ($params) use ($kind) {
            return $params[0] !== $kind;
        }
    );
}