illegal_user_logins WordPress Filter Hook
The illegal_user_logins hook is used to intercept and prevent illegal user login attempts. It is triggered when a user attempts to log in to WordPress with an incorrect username or password. The hook can be used to log failed login attempts, notify administrators of suspicious activity, or take other action to secure the site.
apply_filters( 'illegal_user_logins', array $usernames ) #
Filters the list of disallowed usernames.
Parameters
- $usernames
(array)Array of disallowed usernames.
Source
File: wp-includes/user.php
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |