Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[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');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment