get_currentuserinfo() is empty?
-
I’ve written a plugin (https://www.u-g-h.com/index.php/wordpress-plugins/wordpress-plugin-comment-email-responder/) which uses a number of hooks into a page, specifically get_comment_author_link, comment_form and comment_post. The triggered code includes a fairly typical
`global $userdata;
get_currentuserinfo();`
sequence.The plugin works fine in most cases, however a number of people complain that the plugin doesn’t work for them. I’ve manage to replicate a scenario where get_currentuserinfo() doesn’t return anything in these cases. Does anyone have any idea why?
I’m aware that the init() hook sometimes resolves this issue, but if these are hooks fired at page generation then I don’t see why the user info isn’t populated ..
Help ??
- The topic ‘get_currentuserinfo() is empty?’ is closed to new replies.