Switch language
wpseek on Twitter


A WordPress-centric search engine for devs and theme authors




wp_get_current_user ›

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;
}

Top Google Search Results

More ...

User Note(s)