PHPMailer\PHPMailer

PHPMailer::clearAttachments()publicWP 1.0

Clear all filesystem, string, and binary attachments.

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of PHPMailer::clearAttachments() WP 6.0

public function clearAttachments()
{
    $this->attachment = [];
}