Filters the arguments for PHPMailer’s addEmbeddedImage() method.
Parameters
$argsarray- An array of arguments for
addEmbeddedImage().
pathstringThe path to the file.cidstringThe Content-ID of the image. Default: The key in the embeds array.namestringThe filename of the image.encodingstringThe encoding of the image. Default:'base64'.typestringThe MIME type of the image. Default: empty string, which lets PHPMailer auto-detect.dispositionstringThe disposition of the image. Default:'inline'.
Source
$embed_args = apply_filters(
'wp_mail_embed_args',
array(
'path' => $embed_path,
'cid' => (string) $key,
'name' => basename( $embed_path ),
'encoding' => 'base64',
'type' => '',
'disposition' => 'inline',
)
);
Changelog
| Version | Description |
|---|---|
| 6.9.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.