Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

after clicking on the reset password option in WP, we're getting this link

wp-login.php?action=rp&key=[theKey]&login=testing>

instead of getting this can we alter it to something link to out custom page?

share|improve this question
    
Did you search this stack? Have you seen this Q&A, for instance? If so, please elaborate on how the answer does not apply to your situation. What have you tried so far? Giving a bit more information on what is you want to exactly do will certainly increase the likelihood of a quality answer. –  Johannes Pille Apr 30 '13 at 8:48

2 Answers 2

up vote 0 down vote accepted

Try this

add_filter( 'lostpassword_url', 'lostpass_url_fix');
function lostpass_url_fix( $link ){
    return 'http://example.com';
}

Just replace the example.com with any url you want

share|improve this answer

add this to your functions.php

function tj_lost_pass() {
    return home_url() . '/wp-login.php?action=lostpassword';
}
add_filter( 'lostpassword_url', 'tj_lost_pass' );
share|improve this answer
    
Please add an explanation to why your code must be added and please explain how your code works. Your answer was automatically flagged as low quality, so please amend your answer –  Pieter Goosen Aug 6 at 5:21

Your Answer

 
discard

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.