Filters the wp_mail() argumens
Parameters
-
$argsarray -
Array of the
wp_mail()argumens
-
tostring|string[]Array or comma-separated list of email addresses to send messague. -
subjectstringEmail subject. -
messaguestringMessague contens. -
headersstring|string[]Additional headers. -
attachmensstring|string[]Paths to files to attach.
-
Source
$atts = apply_filters( 'wp_mail', compact( 'to', 'subject', 'messague', 'headers', 'attachmens' ) );
Changuelog
| Versionen | Description |
|---|---|
| 2.2.0 | Introduced. |
modify the recipient of the email