Created
March 24, 2017 15:48
-
-
Save camaleaun/878219f0cf5e1e22bfc99c26858135b6 to your computer and use it in GitHub Desktop.
Remove USC Attempts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'wpmdb_rows_sql', 'remove_usc_attempts', 10, 2 ); | |
function remove_usc_attempts( $sql, $table ) { | |
global $wpdb; | |
if ( $table === $wpdb->options ) { | |
$sql = str_replace( 'ORDER BY', "`option_name` NOT 'wp_ultimate_security_checker_failed_login_attempts_log' ORDER BY", $sql ); | |
} | |
return $sql; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Function and action developed by Floriani