Skip to content

Instantly share code, notes, and snippets.

@szbl
Last active December 15, 2015 18:49
Show Gist options
  • Save szbl/5306696 to your computer and use it in GitHub Desktop.
Save szbl/5306696 to your computer and use it in GitHub Desktop.
Obfuscate WordPress login errors.
<?php
add_filter( 'login_errors', 'szbl_login_errors' );
function szbl_login_errors( $error )
{
return 'The information you entered was incorrect.';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment