Password Reset URL LInk
-
Hey Bowo!
I have a question about the password reset link. Currently, I changed my login URL to example: domainname.com/mylogin and that works great but how can I use the password reset link? The password link is still set to domainname.com/wp-login.php?action=lostpassword so it just goes straight to the error page.
I did also try a code someone said I could use to fix that, but it doesn’t work for some reason. I don’t receive any errors, it just stays on the main login page not moving. If I change the “return site_url” to another page on the domain it works fine, so it definitely something I am missing. What do you think?
Here is the action hook they used:
add_filter( ‘lostpassword_url’, ‘change_lostpassword_url’, 10, 0 );
function change_lostpassword_url() {
return site_url(‘/mylogin?/action=lostpassword’);
}
- The topic ‘Password Reset URL LInk’ is closed to new replies.