Question: how to check user logged in wordpress?
Answer: 6 Answers. global $current_user; get_currentuserinfo(); Then, use following code to check whether user has logged in or not. get_current_user_id() will return the current user id (an integer), or will return 0 if the user is not logged in.