On this page
apply_filters( 'username_exists', int|false $user_id, string $username )
Filters whether the given username exists.
Parameters
$user_idint|false-
The user ID associated with the username, or false if the username does not exist.
$usernamestring-
The username to check for existence.
Source
File: wp-includes/user.php. View all references
return apply_filters( 'username_exists', $user_id, $username );
Related
Used By
| Used By | Description |
|---|---|
| username_exists() wp-includes/user.php | Determines whether the given username exists. |
Changelog
| Version | Description |
|---|---|
| 4.9.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/username_exists