PHPMailer\PHPMailer
PHPMailer::clearAllRecipients
Clear all recipient types.
Method of the class: PHPMailer{}
No Hooks.
Returns
null. Nothing (null).
Usage
$PHPMailer = new PHPMailer(); $PHPMailer->clearAllRecipients();
PHPMailer::clearAllRecipients() PHPMailer::clearAllRecipients code WP 7.0
public function clearAllRecipients()
{
$this->to = [];
$this->cc = [];
$this->bcc = [];
$this->all_recipients = [];
$this->RecipientsQueue = [];
}