get_currentuserinfo
Populate global variables with information about the currently logged in user.
Description
(bool|WP_User) get_currentuserinfo();
Returns (bool|WP_User)
False on XMLRPC Request and invalid auth cookie, WP_User instance otherwise.
Usage
if ( !function_exists( 'get_currentuserinfo' ) ) { require_once ABSPATH . WPINC . '/pluggable-deprecated.php'; } // NOTICE! Understand what this does before running. $result = get_currentuserinfo();
Defined (1)
The function is defined in the following location(s).
- /wp-includes/pluggable-deprecated.php
- function get_currentuserinfo() {
- _deprecated_function( __FUNCTION__, '4.5.0', 'wp_get_current_user()' );
- return _wp_get_current_user();
- }