is_user_logged_in()

Checks if the current visitor is a logged in user.


Return

(bool) True if user is logged in, false if not logged in.


Source

File: wp-includes/pluggable.php

function is_user_logged_in() {
	$user = wp_get_current_user();

	return $user->exists();
}


Changelog

Changelog
Version Description
WP-2.0.0 Introduced.