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();
}
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。