Title: Plugin development &#8211; Outdated docs for function wp_get_current_user
Last modified: August 24, 2016

---

# Plugin development – Outdated docs for function wp_get_current_user

 *  Resolved [snicsnic](https://wordpress.org/support/users/snicsnic/)
 * (@snicsnic)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/plugin-development-outdated-docs-for-function-wp_get_current_user/)
 * Hi all, I’m developing a wordpress plugin and I have to use the function `wp_get_current_user`(
   [http://codex.wordpress.org/Function_Reference/wp_get_current_user](http://codex.wordpress.org/Function_Reference/wp_get_current_user)).
   In this documentation page, among the others, I read the following:
 * > Use the init or any subsequent action to call this function. Calling it outside
   > of an action can lead to troubles. See #14024 for details.
 * So I clicked on the issue ([https://core.trac.wordpress.org/ticket/14024](https://core.trac.wordpress.org/ticket/14024)),
   and its status is “closed”: it also seems that it has been resolved for the milestone
   3.4.
 * So, is the documentation out of date? If yes, it would be better to specify which
   version of wordpress to which to that comment belongs to.
 * I wrote here because this was the first place I found, thank you.
 * snicsnic

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/plugin-development-outdated-docs-for-function-wp_get_current_user/#post-6020536)
 * Thanks!
 * The Codex is entirely community editable, just use the same login you use for
   the forums, make the change, and take the credit. 🙂
 * If you’d like me to do it instead, just let me know.
 *  Thread Starter [snicsnic](https://wordpress.org/support/users/snicsnic/)
 * (@snicsnic)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/plugin-development-outdated-docs-for-function-wp_get_current_user/#post-6020574)
 * Done, thank you, I didn’t know that the same login would have worked.
 * Have a nice day.
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/plugin-development-outdated-docs-for-function-wp_get_current_user/#post-6020575)
 * You’re welcome, and thank you for updating the documentation! 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Plugin development – Outdated docs for function wp_get_current_user’ 
is closed to new replies.

## Tags

 * [wp_get_current_user](https://wordpress.org/support/topic-tag/wp_get_current_user/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [James Huff](https://wordpress.org/support/users/macmanx/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/plugin-development-outdated-docs-for-function-wp_get_current_user/#post-6020575)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
