Conditionally displaying content for logged in user
-
I’d like to display some (non-WP) content when a user is logged in, but haven’t had much success. A quick turn around the forums revealed this topic, from which I have extracted this:
get_currentuserinfo();
if (isset($user_ID) && ('' != intval($user_ID))) {
// do stuff here
}I’m at work at the moment, so can’t test this, but can ayone tell me if this code snippet will do the trick, or point me in the right direction if it won’t?
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Conditionally displaying content for logged in user’ is closed to new replies.