PHPMailer\PHPMailer
PHPMailer::clearAttachments
Clear all filesystem, string, and binary attachments.
Method of the class: PHPMailer{}
No Hooks.
Returns
null. Nothing (null).
Usage
$PHPMailer = new PHPMailer(); $PHPMailer->clearAttachments();
PHPMailer::clearAttachments() PHPMailer::clearAttachments code WP 7.0
public function clearAttachments()
{
$this->attachment = [];
}