Filters the arguments for PHPMailer's addEmbeddedImage() method.
Parameters
$argsarray
{ An array of arguments for addEmbeddedImage(). @type string $path The path to the file. @type string $cid The Content-ID of the image. Default: The key in the embeds array. @type string $name The filename of the image. @type string $encoding The encoding of the image. Default: 'base64'. @type string $type The MIME type of the image. Default: empty string, which lets PHPMailer auto-detect. @type string $disposition The disposition of the image. Default: 'inline'.}
$pathstring
The path to the file.
$cidstring
The Content-ID of the image. Default: The key in the embeds array.
$namestring
The filename of the image.
$encodingstring
The encoding of the image. Default: 'base64'.
$typestring
The MIME type of the image. Default: empty string, which lets PHPMailer auto-detect.
579* @type string$name The filename of the image.580* @type string$encoding The encoding of the image.Default:'base64'.581* @type string$type The MIME type of the image.Default:emptystring, which lets PHPMailer auto-detect.582* @type string$disposition The disposition of the image.Default:'inline'.583*}584*/585$embed_args=apply_filters(586'wp_mail_embed_args',587array(588'path'=>$embed_path,589'cid'=>(string)$key,590'name'=>basename($embed_path),591'encoding'=>'base64',
History
Introduced in 6.9.0. Unchanged from 6.9.7 through 7.1.0.