Title: retrieve user_ID in plugin
Last modified: August 18, 2016

---

# retrieve user_ID in plugin

 *  [bernardflach](https://wordpress.org/support/users/bernardflach/)
 * (@bernardflach)
 * [20 years, 4 months ago](https://wordpress.org/support/topic/retrieve-user_id-in-plugin/)
 * Is it possible retrieve the logged in user_id within a plugin ?

Viewing 1 replies (of 1 total)

 *  [viper007bond](https://wordpress.org/support/users/viper007bond/)
 * (@viper007bond)
 * [20 years, 4 months ago](https://wordpress.org/support/topic/retrieve-user_id-in-plugin/#post-370946)
 * Make it a global and if it’s still not set, use this function to set it:
 * [http://codex.wordpress.org/Function_Reference/get_currentuserinfo](http://codex.wordpress.org/Function_Reference/get_currentuserinfo)

Viewing 1 replies (of 1 total)

The topic ‘retrieve user_ID in plugin’ is closed to new replies.

## Tags

 * [$user_ID](https://wordpress.org/support/topic-tag/user_id/)

 * 1 reply
 * 2 participants
 * Last reply from: [viper007bond](https://wordpress.org/support/users/viper007bond/)
 * Last activity: [20 years, 4 months ago](https://wordpress.org/support/topic/retrieve-user_id-in-plugin/#post-370946)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
