Created
January 31, 2015 15:51
-
-
Save thagxt/0aa6624c1c46e178995f to your computer and use it in GitHub Desktop.
[WordPress] Change the wp-login.php?action=lostpassword to /lost-password/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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
it didnt work..