[wp-hackers] Redirect user Not Logged In

Chris Jean gaarai at gaarai.com
Tue Oct 27 15:18:00 UTC 2009


Without modifying core, the earliest action you can latch to is
"plugins_loaded". This runs immediately after all the activated plugins
have been initialized.

Of course, you could just put the processing code directly into an
activated plugin and not wait for the hook call.

If you are putting this code in a theme, the earliest action I recommend
using is "init".

Chris Jean
http://gaarai.com/
@chrisjean



Jeremi Bergman wrote:
> I would like to redirect users who are not logged in at the earliest place
> possible within the code.  Is there a hook that is called first that woudl
> be the best place for this?
>
> Thanks
>
>   


More information about the wp-hackers mailing list