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
stringEmail subject.message
stringMessage contents.headers
string|string[]Additional headers.attachments
string|string[]Paths to files to attach.
Source
$atts = apply_filters( 'wp_mail', compact( 'to', 'subject', 'message', 'headers', 'attachments' ) );
Changelog
Version | Description |
---|---|
2.2.0 | Introduced. |
modify the recipient of the email