get_currentuserinfo

函数


get_currentuserinfo ( No parameters )
返回值
  • (bool|WP_User) False on XMLRPC Request and invalid auth cookie, WP_User instance otherwise.
相关
  • wp_get_current_user()
定义位置
  • wp-includes/pluggable-deprecated.php
    , line 48
引入
0.71
弃用
4.5.0

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

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

	return _wp_get_current_user();
}