do_action( 'bp_email_recipient', string|array|int|WP_User $email_or_user, string $name, BP_Email_Recipient $this )

Fires inside __construct() method for BP_Email_Recipient class.

Description

Parameters

$email_or_user

(string|array|int|WP_User) Either an email address, user ID, WP_User object, or an array containing any combination of the above.

$name

(string) If $email_or_user is a string, this is the recipient's name.

$this

(BP_Email_Recipient) Current instance of the email type class.

Source

File: bp-core/classes/class-bp-email-recipient.php

Changelog

Changelog
Version Description
BuddyPress 2.5.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.