bp_core_get_userlink_by_email( string $email )
Return the user link for the user based on user email address.
Description
Parameters
-
(Required) The email address for the user.
Return
(string) The link to the users home base. False on no match.
Source
File: bp-members/bp-members-functions.php
function bp_core_get_userlink_by_email( $email ) { $user = get_user_by( 'email', $email ); /** * Filters the user link for the user based on user email address. * * @since BuddyPress 1.0.1 * * @param string|bool $value URL for the user if found, otherwise false. */ return apply_filters( 'bp_core_get_userlink_by_email', bp_core_get_userlink( $user->ID, false, false, true ) ); }
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.