Support » Plugin: Limit Login Attempts » Feature request – total lockouts in email

  • The emails are good but with the recent onslaught of hack attempts it would be handy to add a line to the top of the email that says:

    218 total failed login attempts.

    I added it to mine with this code, but it would be nice to be in the official plugin:

    $total_count = get_option(‘limit_login_lockouts_total’, 0);
    $message = sprintf(__(“%d total failed login attempts.”
    , ‘limit-login-attempts’) . “\r\n\r\n”
    , $total_count);

    Thanks! This plugin is a lifesaver!

  • The topic ‘Feature request – total lockouts in email’ is closed to new replies.