Remove Error Message on the Login Page

Whenever your users enter an incorrect login name or password, an error message is displayed on the login page alerting them to an incorrect piece of information. If a hacker were to correctly guess one of those pieces of information, the error message would help them identify what he/she got right.

 

function ns_no_wordpress_errors(){
  return 'Something is wrong!';
}
add_filter( 'login_errors', 'ns_no_wordpress_errors' );

ABOUT AUTHOR

Nuno

I am a Freelance Web Developer and WordPress Expert based in London with a wealth of website development and support experience. I am great at problem solving and developing quick solutions.

  • LET'S TALK!

    Fill in the form below to make an enquiry or find my contact details on my contact page.

  • This form collects your name and email address so that I can respond to the enquiry(ies) that you submit via this website. Please check my privacy policy for the full story on how I use, protect and manage your submitted data.