get_currentuserinfo

Advertisement

Deprecated Deprecated

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

Summery Summery

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

Syntax Syntax

get_currentuserinfo()

Return Return

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

Source Source

File: wp-includes/pluggable-deprecated.php

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

	return _wp_get_current_user();
}

Advertisement

Changelog Changelog

Changelog
Version Description
4.5.0 Use wp_get_current_user()
0.71 Introduced.

See also See also

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.