• Resolved neptun

    (@neptun)


    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

    • This topic was modified 3 years ago by neptun. Reason: Adding Tag

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter neptun

    (@neptun)

    Hello, I fixed sef that problem. I set Finnish text “Salasana hukassa?” in place “Lost your passvord?” Thats was it, now fixed.

    neptun

Viewing 1 replies (of 1 total)
  • The topic ‘Lost Password link do not remove’ is closed to new replies.