apply_filters( 'wp_mail', array $args )

Filters the wp_mail() arguments.


Parameters

$args

Array of the wp_mail() arguments.<br>

  • 'to'
    (string|string[]) Array or comma-separated list of email addresses to send message.<br>
  • 'subject'
    (string) Email subject.<br>
  • 'message'
    (string) Message contents.<br>
  • 'headers'
    (string|string[]) Additional headers.<br>
  • 'attachments'
    (string|string[]) Paths to files to attach.<br>


Source

File: wp-includes/pluggable.php

View on GitHub


Changelog

Changelog
Version Description
2.2.0 Introduced.