Editing theme file to disable login error hints and display custom error message.
To disable the login error hint and replace it with a custom message, follow these steps:- Log in to your WordPress site with an administrator account.
-
On the Dashboard in the left sidebar, click Appearance, and then click Editor:
- On the editor page, look at the right column where you see the “Theme Files”.Under theme files, you will see a list of all the files related to your theme. In this example, we are using “Twenty Sixteen” theme.Find the file “functions.php”
- Copy and add the code to the end of the functions.php file. The customised login hint” You are not allowed on this website” will be displayed on the panel