[wp-hackers] getting current user info
Andy Staines
andy at yellowswordfish.com
Thu Nov 8 19:12:49 GMT 2007
>
Thanks for that Travis - useful info to know.
Andy
> get_currentuserinfo is only needed if you're doing stuff really,
> really early. When wp() is called, get_currentuserinfo is called
> automatically; any filters/actions that are used after the wp action
> just need to use the globals (it's been that way since 2.0). There are
> only a tiny handful of actions that you can hook that *won't* have the
> global data already set (most notably, plugins_loaded and init).
>
>
> --
> Travis
>
> In Series maintainer
> Random coder & quality guy
> <http://remstate.com/>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
More information about the wp-hackers
mailing list