apply_filters( 'wp_mail_embed_args', array $args )
- Since
- 6.9.0
Filters the arguments for PHPMailer's addEmbeddedImage() method.
Compatibility
- WordPress
- since 6.9.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in 3 of the 5 tracked releases, added in 6.9.0.
Parameters
$argsarray- { An array of arguments for PHPMailer's addEmbeddedImage() method.
@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'.
}$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'.
Where this hook fires · 1
wp-includes/pluggable.php:588wp_mail()
Source code
* @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'. * } */ $embed_args = apply_filters( 'wp_mail_embed_args', array( 'path' => $embed_path, 'cid' => (string) $key, 'name' => basename( $embed_path ), 'encoding' => 'base64',Changelog
Introduced in 6.9.0. Unchanged from 6.9.7 through 7.1.0.
Signature, return type and hooks compared across 3 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.