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.
Return Return
(string) The email for the matched user. Empty string if no user matches the $user_id.
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 ) );
}
Changelog Changelog
| Version | Description |
|---|---|
| 1.0.0 | Introduced. |