bp_core_get_userlink_by_email( string $email )

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


Parameters Parameters

$email

(string) (Required) The email address for the user.


Top ↑

Return Return

(string) The link to the users home base. False on no match.


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


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.