Lego2012
12/13/2016 - 9:45 AM

Admin and Dashboard - Disable WordPress Login Hints

Admin and Dashboard - Disable WordPress Login Hints

<?php
// Do NOT include the opening php tag

<!--
Keeping your WordPress website secure is important (see how to improve it), and there's a little thing that will make a hacker's life more difficult: not providing detailed error messages on the WordPress login page. To disable these warnings you need to open your functions.php and copy this: 
  -->

function no_wordpress_errors(){
  return 'GET OFF MY LAWN !! RIGHT NOW !!';
}
add_filter( 'login_errors', 'no_wordpress_errors' );

<!--
This way you no longer provide useful hints that could be exploited for malicious activities. 
-->