WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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 recently found that a login url filter is available but i can't find a solution for the forgot password as well,

for the login url i use this:

function custom_login_url($login_url) {
    return ''.get_option('siteurl'). '/login';

is it possible to do the same for the forgot password?

thanks a lot, Philip

share|improve this question
up vote 7 down vote accepted

Yes it's also possible for the password, by running a filter on lostpassword_url, which is basically the password equivalent of the login url..


Basically the same as before, just changed the function and hook names.

add_filter( 'lostpassword_url', 'custom_lostpass_url' );

function custom_lostpass_url( $lostpassword_url ) {
    return get_option('siteurl'). '/lostpass';
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.