This function has been deprecated. Use wp_get_current_user() instead.

get_currentuserinfo()

Populate global variables with information about the currently logged in user.


Description

See also


Return

(bool|WP_User) False on XMLRPC Request and invalid auth cookie, WP_User instance otherwise.


Source

File: wp-includes/pluggable-deprecated.php

function get_currentuserinfo() {
	_deprecated_function( __FUNCTION__, 'WP-4.5.0', 'wp_get_current_user()' );

	return _wp_get_current_user();
}


Changelog

Changelog
Version Description
WP-4.5.0 Use wp_get_current_user()
WP-0.71 Introduced. This function has been deprecated. Use wp_get_current_user() instead.