• Resolved TNRealtors®

    (@tartech)


    I’m trying to find out how I can customize the Error message on the default login.php page when someone tries to recover their password. Right now the error message is “ERROR: There is no user registered with that email address.”

    All I’m wanting to do is find where that string is located and add a text link to it where users will be able to look up what username we have for them (which will be a separate page). Anyone know where I can find this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Add the following to your functions.php in your theme.

    add_filter( 'login_errors', 'wp57484_login_text' );
    
    function wp57484_login_text( $error ) {
    
    	return $error . " String You Want Add";
    }

    Replace the value in return with what you want to display. If you just want to add a link at the end, replace everything within the double quotes in return $error . " String You Want Add";

    Thread Starter TNRealtors®

    (@tartech)

    Worked like a charm! Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Customizing Error message for lost password submission’ is closed to new replies.