apply_filters( 'wp_mail', array $args )

Filters the wp_mail() arguments.


Parameters

$args

Array of the wp_mail() arguments.

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


Source

File: wp-includes/pluggable.php

View on GitHub



Changelog

Changelog
Version Description
WP-2.2.0 Introduced.