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
stringEmail subject.message
stringMessage contents.headers
string|string[]Additional headers.attachments
string|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' ) );
Changelog
Version | Description |
---|---|
2.2.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
modify the recipient of the email