Retrieve the current user object.

Signature

wp_get_current_user()

Return

(WP_User) Current user WP_User object

Source

function wp_get_current_user() {
	global $current_user;

	get_currentuserinfo();

	return $current_user;
}
WP Trac GitHub

Link here