determining if the user is logged in

Use the is_user_logged_in() conditional tag (Codex ref) to determine if the current user is logged in.

Use the get_userdata() function (Codex ref) to return user data.

Leave a Comment