Hiding details of error messages on the login page enhances the security and user confidence for WordPress sites. This article shows how to disable login errors and display a custom message.
To disable the login error hint and replace it with a custom message, follow these steps:
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
function wp_remove_login_hint() { return 'You are not allowed on this website'; } add_filter( 'login_errors', 'wp_remove_login_hint' );
Subscribe to receive weekly cutting edge tips, strategies, and news you need to grow your web business.
No charge. Unsubscribe anytime.
Did you find this article helpful? Then you'll love our support. Experience the A2 Hosting difference today and get a pre-secured, pre-optimized website. Check out our web hosting plans today.
We use cookies to personalize the website for you and to analyze the use of our website. You consent to this by clicking on "I consent" or by continuing your use of this website. Further information about cookies can be found in our Privacy Policy.