External logged-in check
-
I’m making a plugin that accesses the WP database externally (not on the main page or in the loop or anything), and I want it to do a quick check just to see if the user is logged in.
I tried using “if ($user_ID != ”)” but it looks like $user_ID isn’t defined.
I tried using the line “global $user_ID” but that didn’t seem to solve the problem. Should I try including something? Or should I use alternate code?
I briefly tried running my own cookie-check but I failed miserably ??
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘External logged-in check’ is closed to new replies.