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 6.8.1
public function clearAttachments() { $this->attachment = []; }