Hide login error message at your Wordpress
When you try to login with an existing user and wrong password in wordpress, you receive a really unsecure message. To solve this problem, add the following code at functions.php in your theme files.
<?php
add_filter('login_errors','login_error_message');
function login_error_message($error){
return 'Wrong username and password.';
}
?>Written by Pedro Henrique Candido
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Php
Authors
Did you know?
PHP applications still send a browser full of JavaScript. Hardening the server does not inventory the payment, analytics, and plugin scripts that run after the HTML is delivered.
Security insights from Cside
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#