WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using wordpress 3,8.

When a user visit /wp-login.php?action=lostpassword and clicks "retrive password"

i would like do redirect them to /index.php instead of the login window.

Is it possible?



share|improve this question

Use the lostpassword_redirect filter:

add_filter( 'lostpassword_redirect', 'wpse127373_lostpassword_redirect' );
function wpse127373_lostpassword_redirect() {
    return home_url();  // use the home URL for your site

Add this code to your active theme's functions.php file or -- if you want it to persists across theme changes -- add it to a custom plugin.


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.