bp_core_get_user_email( $user_id )

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


Description Description


Parameters Parameters

$uid

(Required) User ID to check.


Top ↑

Return Return

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


Top ↑

Source 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 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 ) );
}

Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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