Title: User info
Last modified: August 18, 2016

---

# User info

 *  [xerocool](https://wordpress.org/support/users/xerocool/)
 * (@xerocool)
 * [21 years, 4 months ago](https://wordpress.org/support/topic/user-info/)
 * How do I get a user info to see if a user is logged in or not because My menu(
   [http://r0x0rz.info/](http://r0x0rz.info/)) on the right is wrong…so I want it
   to work right. I want “Register” to appear If the user is not logged in and so
   on..

Viewing 1 replies (of 1 total)

 *  [navid](https://wordpress.org/support/users/navid/)
 * (@navid)
 * [21 years, 4 months ago](https://wordpress.org/support/topic/user-info/#post-130400)
 * The best way to figure out how to do this is to upload / modify your file and
   add the following to the top after the header information:
 * `<div style="display: none;">
    <?php print_r( $GLOBALS ); ?> </div>
 * Then, upload your file and refresh the page. Check the source and you’ll see 
   a HUGE list of global variables which are available for you to use inside your
   page. Figure out which ones pertain to logged in users and then simply call them
   using either `$<variable>` directly, or reference `$GLOBALS["variable"]`
 * Good luck.

Viewing 1 replies (of 1 total)

The topic ‘User info’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [navid](https://wordpress.org/support/users/navid/)
 * Last activity: [21 years, 4 months ago](https://wordpress.org/support/topic/user-info/#post-130400)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
