Skip to content

Instantly share code, notes, and snippets.

@thagxt
Created January 31, 2015 15:51
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save thagxt/0aa6624c1c46e178995f to your computer and use it in GitHub Desktop.
Save thagxt/0aa6624c1c46e178995f to your computer and use it in GitHub Desktop.
[WordPress] Change the wp-login.php?action=lostpassword to /lost-password/
/*
* code below goes in your functions.php theme file.
*/
// changing the wp-login.php?action=lostpassword to /lost-password/
function custom_lost_password_page() {
return home_url('/lost-password/');
}
add_filter('lostpassword_url', 'custom_lost_password_page');
@devedits
Copy link

it didnt work..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment