bp_get_user_by_nickname( string $nickname )
Retrieve member info based on nickname.
Description
Parameters
- $nickname
-
(Required) nickname to check.
Return
(WP_User|null) WP_User object on success, null on failure.
Source
File: bp-members/bp-members-functions.php
function bp_get_user_by_nickname( $nickname ) { $user_id = bp_core_get_userid_from_nickname( $nickname ); return $user_id ? get_user_by( 'ID', $user_id ) : null; }
Changelog
Version | Description |
---|---|
BuddyBoss 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.