is_user_logged_in doesn't work
-
I’m trying to log in a Facebook user as a wordpress user using the wp_insert_user wp_auth_cookie and wp_set_current_user and wp_signon(null,true) in that order on the wp_loaded hook which gives me the user user_logged_in() result as true after the process…
however in trying to refresh the page the user_logged_in() results false which again tries to repeat the steps above even though the user has been successfully created and logged in. It leads me to believe that either the is_user_logged_in is being called too early before the user can be instantiated or the user is not being properly logged in
How can I safely check user is logged in after the user has been instantiated?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘is_user_logged_in doesn't work’ is closed to new replies.