Can’t get userid after a subscriber login
-
Hi,
I made my own script. I call this function inside my script
wp_get_current_user()
But unfortunately that function give me no result.What’s happen with it? The user already log in my wordpress site. But when I use that function, I got no result.
How to get an user_id if I can’t use
wp_get_current_user()
in a specific page?Thank you
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Can’t get userid after a subscriber login’ is closed to new replies.