Title: get_currentuserinfo() throwing PHP Notice
Last modified: October 28, 2016

---

# get_currentuserinfo() throwing PHP Notice

 *  [Bainternet](https://wordpress.org/support/users/bainternet/)
 * (@bainternet)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/get_currentuserinfo-throwing-php-notice/)
 * Your plugin is throwing PHP Notice, the cause is using the deprecated `get_currentuserinfo`
   function:
 * > PHP Notice: get_currentuserinfo is **deprecated** since version 4.5.0! Use 
   > wp_get_current_user() instead.
 * The fix is dead simple, just replace line 546 in index.php:
    `get_currentuserinfo();`
 * with this:
 * `$current_user = wp_get_current_user();`
    -  This topic was modified 9 years, 7 months ago by [Bainternet](https://wordpress.org/support/users/bainternet/).

The topic ‘get_currentuserinfo() throwing PHP Notice’ is closed to new replies.

 * ![](https://ps.w.org/obox-intercom/assets/icon-256x256.png?rev=1251207)
 * [Intercom Integration for WordPress](https://wordpress.org/plugins/obox-intercom/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/obox-intercom/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/obox-intercom/)
 * [Active Topics](https://wordpress.org/support/plugin/obox-intercom/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/obox-intercom/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/obox-intercom/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Bainternet](https://wordpress.org/support/users/bainternet/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/get_currentuserinfo-throwing-php-notice/)
 * Status: not resolved