wp_mail WordPress Filter Hook
The wp_mail function is used to send emails from a WordPress site. This function is used by many plugins and themes to send notifications and other information to users. The wp_mail function can be used to send any type of email, including HTML emails.
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. |