On this page
apply_filters( 'wp_mail', array $args )
Filters the wp_mail() arguments.
Parameters
$argsarray-
Array of the
wp_mail()arguments.
tostring|string[]Array or comma-separated list of email addresses to send message.subjectstringEmail subject.messagestringMessage contents.headersstring|string[]Additional headers.attachmentsstring|string[]Paths to files to attach.
More Information
Source
File: wp-includes/pluggable.php. View all references
$atts = apply_filters( 'wp_mail', compact( 'to', 'subject', 'message', 'headers', 'attachments' ) );
Related
Used By
| Used By | Description |
|---|---|
| wp_mail() wp-includes/pluggable.php | Sends an email, similar to PHP’s mail function. |
Changelog
| Version | Description |
|---|---|
| 2.2.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_mail