Change Password Reset Message

With this you can add a message that will remind password re-seters to check their spam folder if they don’t get the email

function the_login_message( $message ) {
    if ( $_GET['action'] == "lostpassword" ){
        return 'Please enter your username or email address. You will receive a link to create a new password via email.<br /><br /><h2>PLEASE CHECK YOUR SPAM FOLDER IF YOU DON\'T SEE THE RESET EMAIL IN YOUR INBOX!!!</h2><div><br />If you still don\'t see it please email tech support at <a href="xxxxxxx">xxxxxxx</a><br />Thanks for your patience.';
    } else {
        return $message;
    }
    
    
}
add_filter( 'login_message', 'the_login_message' );
Comments