[wp-hackers] any hook before auth_redirect() ?

John Blackbourn johnbillion+wp at gmail.com
Mon Nov 3 22:15:32 GMT 2008


Purely off the top of my head, I think 'plugins_loaded' comes pretty
early. In fact I think it's the first action (though there are filters
that are applied before it).

John,

On Sun, Oct 26, 2008 at 5:53 PM, Malaiac <malaiac at gmail.com> wrote:
> I had a allow_autologin() function which allowed a anonymous visitor
> to submit a post with his email, and be registered, logged in and
> redirected to post.php page.
> The function was working on my development version (2.7 r ~9000)
> I updated today r 9353 : the function is not working anymore.
> It seems that auth_redirect() acts before init (which I took for the
> first hook in wp admin page loading)
> Before I had :
> site.com/submit , form action = wp-admin/post-new.php > init hook
> register a new user and log him in > redirect to edit page
> now, I have :
> site.com/submit > auth_redirect() >
> site.com/wp-login.php?redirect_to=site.com/wp-admin/post.php ... and
> there the init hook works
>
> Any modification on this side ?
> If not, do you have any idea of a sooner hook than init() ?
>
> Thanks
> M
> _______________________________________________
> 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