do_action_ref_array( 'bp_send_email', BP_Email $email , string $email_type , string|array|int|WP_User $to , array $args )
Gives access to an email before it is sent.
Description Description
Parameters Parameters
-
The email (object) about to be sent.
- $email_type
-
Type of email being sent.
- $to
-
Either a email address, user ID, WP_User object, or an array containing the address and name.
- $args
-
Array of extra parameters.
- 'tokens'
(array) Optional. Associative arrays of string replacements for the email.
- 'tokens'
Source Source
File: bp-core/bp-core-functions.php
Changelog Changelog
Version | Description |
---|---|
2.8.0 | Introduced. |