get_currentuserinfo
get_currentuserinfo ( No parameters )
See:Returns:- (bool|WP_User) False on XMLRPC Request and invalid auth cookie, WP_User instance otherwise.
Defined at: - Introduced in WordPress: 0.71
- Deprecated in WordPress: 4.5.0
Description
Populate global variables with information about the currently logged in user.