= FAILED_LOGIN_LIMIT) { $wait_time = human_time_diff(time(), get_option('_transient_timeout_' . $transient_key)); return new WP_Error('failed_login_limit', sprintf(__('Login attempt limit reached. Wait %1$s before trying again.'), $wait_time)); } return $user; }, 100, 3);