A WordPress-centric search engine for devs and theme authors



wp_get_current_user ›

Since2.0.3
Deprecatedn/a
wp_get_current_user ( No parameters )
Returns:
  • (WP_User) Current user WP_User object
Defined at:
Codex:

Retrieve the current user object.



Source

function wp_get_current_user() {
	global $current_user;

	get_currentuserinfo();

	return $current_user;
}