PHPMailer\PHPMailer

PHPMailer::clearCCs()publicWP 1.0

Clear all CC recipients.

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of PHPMailer::clearCCs() WP 6.0

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