PHPMailer\PHPMailer

PHPMailer::clearCCs()publicWP 1.0

Clear all CC recipients.

Method of the class: PHPMailer{}

No Hooks.

Return

null. Nothing (null).

Usage

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

PHPMailer::clearCCs() code WP 6.6.2

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