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

Parameters

$email

The email (object) about to be sent.

$email_type

Type of email being sent.

$to

Either an email address, user ID, WP_User object, or an array containg the address and name.

$args

Array of extra parameters.

  • 'tokens'
    (array) Optional. Assocative arrays of string replacements for the email.

Source

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

Changelog

Changelog
Version Description
BuddyPress 2.8.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.