BP_Core_User::get_core_userdata( int $user_id )
Get WordPress user details for a specified user.
Description
Parameters
- $user_id
-
(Required) User ID.
Return
(false|object) WP_User if successful, false on failure.
Source
File: bp-core/classes/class-bp-core-user.php
public static function get_core_userdata( $user_id ) { return WP_User::get_data_by( 'id', $user_id ); }
Changelog
Version | Description |
---|---|
BuddyPress 3.0.0 Results might be from cache | 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.