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