By: Prem Tiwari | Last Updated:
Sometimes we need to change the WordPress admin login error message to make the error message more relatively. In this tutorial, I will explain how To change WordPress admin login error message.
Read this tutorial carefully and implement the share code with your WordPress based website to customize the WordPress admin login error message.
There are two ways to do this first is by using the Cpanel and second by using the WordPress admin panel.
Change by using cpanel
Login to your cpanel with valid login credential and navigate to the cPanel => file manager=> public_html => wp-content => theme folder => theme name => functions.php file and add the below code at the end of the file and save it.
Change by using WordPress Admin
If you don’t want to change by using the Cpanel, then follow this step. This is the easiest way to change functions.php code by using your WordPress admin area.
Login to your WordPress admin and go to the Appearance => Editor => functions.php file and add the below code at the end of the file and save it.
return "Please enter a valid Login credential.";
Prem Tiwari is the founder of freewebmentor.com and is a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies.View all posts by Prem Tiwari