• I have a multisite with many subsites for hosting virtual events. When a user registers on one of them and now has an account they are unable to log into main page of the multisite and get Invalid/Unknown Username error. I would like to change the text and link on that error message as seen here:
    https://monosnap.com/file/4YskQOETNOC9UQI2GiJrQVipGLOIXy

    Reason being is after entering in the Username or email that button link sends an email to the user (which it is found and recognizes it from that other subsite) but the link in the email sends you right back to this same form and URL. However, I don’t know where that link is located.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter JEBROUGHTON

    (@jebroughton)

    I was able to get the correct link for the password reset for the email to send out.

    I would still like to get the verbiage changed.

    Hi @jebroughton,

    Sorry for the delayed response.
    Regarding your query, we do not have an inbuilt option to change that message but you can do it by inserting a small piece of code in your active theme functions.php file.
    here is the code:

    add_filter( 'user_registration_add_error',function( $message ){
     if( 'Invalid username or email.' ===  $message ) {
        $message = __('your custom message','user-registration');
     }
    return $message;
    });
    

    Note: Replace “your custom message” with the text that you want to display.
    I hope it helps.
    Regards!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Invalid/Unknown Username text and link’ is closed to new replies.