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.
Usamos cookies con el fin de personalizar para usted nuestro sitio Web y analizar el uso de éste. Usted acepta esto haciendo clic en “Acepto” o al continuar usando el sitio Web. Hay más información sobre cookies en nuestra política de privacidad.