A WordPress-centric search engine for devs and theme authors



wp_mail ›

Since2.2.0
Deprecatedn/a
apply_filters( 'wp_mail', compact( 'to', 'subject', 'message', 'headers', 'attachments' )
Parameters:
  • (array) $args A compacted array of wp_mail() arguments, including the "to" email, subject, message, headers, and attachments values.
    Required: Yes
Defined at:
Codex:

Filters the wp_mail() arguments.





Source

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