Skip to content

Instantly share code, notes, and snippets.

@camaleaun
Created March 24, 2017 15:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save camaleaun/878219f0cf5e1e22bfc99c26858135b6 to your computer and use it in GitHub Desktop.
Save camaleaun/878219f0cf5e1e22bfc99c26858135b6 to your computer and use it in GitHub Desktop.
Remove USC Attempts
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;
}
@camaleaun
Copy link
Author

Function and action developed by Floriani

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment