apply_filters( 'wp_mail', array $args )
Filters the wp_mail() arguments.
Parameters
- $args
-
(array) Array of the
wp_mail()
arguments.-
'to'
(string|string[]) Array or comma-separated list of email addresses to send message. -
'subject'
(string) Email subject. -
'message'
(string) Message contents. -
'headers'
(string|string[]) Additional headers. -
'attachments'
(string|string[]) Paths to files to attach.
-
'to'
More Information
Source
Changelog
Version | Description |
---|---|
2.2.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_mail