Support » Everything else WordPress » get_currentuserinfo() performance question

Viewing 1 replies (of 1 total)
  • Wow. If you’re consistently getting those kinds of performance hits just from using get_currentuserinfo() then please open a support ticket, as this is a bug that needs to be addressed.

    To get the current username from the cookie, do the following:

    $cookie_data = explode('|', $_COOKIE[LOGGED_IN_COOKIE]);
    $username = $cookie_data[0];
Viewing 1 replies (of 1 total)
  • The topic ‘get_currentuserinfo() performance question’ is closed to new replies.