When you enter wrong username or password, WordPress login screen will inform you whether you have entered wrong username or password.
So if hacker gets one thing (username or password) right then it is easy to gain another to access your site. Therefore, it is recommended to display the custom error message. Open your functios.php from your theme folder and paste the following code.
Level 2 Team
When you enter wrong username or password, WordPress login screen will inform you whether you have entered wrong username or password.
So if hacker gets one thing (username or password) right then it is easy to gain another to access your site. Therefore, it is recommended to display the custom error message.

Open your functios.php from your theme folder and paste the following code.