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

$email

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.


Top ↑

Source Source

File: bp-core/bp-core-functions.php


Top ↑

Changelog Changelog

Changelog
Version Description
2.8.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.