Function: is_user_logged_in

is_user_logged_in( )

Determines whether the current visitor is a logged in user.

For more information on this and similar theme functions, check out the Conditional Tags article in the Theme Developer Handbook.

Returns

boolean

True if user is logged in, false if not logged in.

WordPress Developer Newsletter

Stay on top of the latest WordPress API changes, developer tool updates, security alerts and more.