bp_core_get_user_email( $user_id )

Return the email address for the user based on user ID.

Description

Parameters

$uid

(int) (Required) User ID to check.

Return

(string) The email for the matched user. Empty string if no user matches the $user_id.

Source

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

function bp_core_get_user_email( $user_id ) {
	/**
	 * Filters the user email for user based on user ID.
	 *
	 * @since BuddyPress 1.0.1
	 *
	 * @param string $email Email determined for the user.
	 */
	return apply_filters( 'bp_core_get_user_email', get_the_author_meta( 'email', $user_id ) );
}

Changelog

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