Lost Password link do not remove
-
My WordPress page can no longer be able to log in. Still, it has a password reset link. I’m looking for help on how to remove it. As instructed, I added this code to functions.php to file:
// Disable Password Reset URL & Redirect
function vpsb_disable_lost_password() {
if (isset( $_GET[‘action’] )){
if ( in_array( $_GET[‘action’], array(‘lostpassword’, ‘retrievepassword’) ) ) {
wp_redirect( wp_login_url(), 301 );
exit;
}
}
}
add_action( “login_init”, “vpsb_disable_lost_password” );After that, however, the link did not leave. My site is in Finnish, so the link reads “Salasana hukassa?” eli Lost yor password? What have I done wrong or why it is that the link does not exit. How to get it removed?
neptun
The page I need help with: [log in to see the link]
- The topic ‘Lost Password link do not remove’ is closed to new replies.