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.


Top ↑

Source

File: wp-includes/user.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.4.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More