I would like to able to redirect to
get_bloginfo('url'); after reseting password.
But I cannot for life of me find any simple answer or function to do this.
Does anyone know if this is possible?
Here is a simple solution. Im hooking into
What it does, it runs on
UPDATE after comment
If you want to redirect the user after submitted a new password you only need to use the hook password_reset here is an example:
The "correct" answer doesn't work here because the action 'password_reset' fires before the password is reset.
I modified the first answer, before the update, to work.
Edit: Didn't have enough rep to comment so I'm posting this as a new answer.
I can't see how the "UPDATE after comment" answer works.
The documentation for the 'password_reset' hook says "Fires before the user's password is reset.".
Since I had a similar need I developed my solution to the problem. We still respond to the "password_reset" hook but instead of performing the redirect immediately we add a hook for the "login_url" filter. And it's in this filter that we add the redirections to the home page after the user has logged in.
Rediret to is a wordpress feature you don't need to create a plugin for it, just add &redirect_to= the url and it will work. Example: