WordPress at a glance
function is not described

get_currentuserinfo() WP 0.71

Deprecated in 4.5.0. It is no longer supported and can be removed in future releases. Use wp_get_current_user() instead.

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

  • See: wp_get_current_user()

No Hooks.


true/false/WP_User. False on XMLRPC Request and invalid auth cookie, WP_User instance otherwise.



Code of get currentuserinfo: wp-includes/pluggable-deprecated.php WP 5.2.2

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

	return _wp_get_current_user();