W3cubDocs

/WordPress

apply_filters( 'username_exists', int|false $user_id, string $username )

Filters whether the given username exists or not.

Parameters

$user_id

(int|false) The user's ID on success, and false on failure.

$username

(string) Username to check.

Source

File: wp-includes/user.php

View on Trac

Changelog

Version Description
4.9.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/username_exists