wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_mail › WordPress Filter Hooks

Since2.2.0
Deprecatedn/a
apply_filters( 'wp_mail', compact( 'to', 'subject', 'message', 'headers', 'attachments' )
Parameters:
  • (array) $args { Array of the `wp_mail()` arguments. @type string|string[] $to Array or comma-separated list of email addresses to send message. @type string $subject Email subject. @type string $message Message contents. @type string|string[] $headers Additional headers. @type string|string[] $attachments Paths to files to attach. }
    Required: Yes
Defined at:
Codex:

Filters the wp_mail() arguments.





Source

$atts = apply_filters( 'wp_mail', compact( 'to', 'subject', 'message', 'headers', 'attachments' ) );