WordPress at a glance
filter is not described

username_exists filter-hook . WP 4.9.0

Filters whether the given username exists or not.


add_filter( 'username_exists', 'filter_function_name_3867', 10, 2 );
function filter_function_name_3867( $user_id, $username ){
	// filter...

	return $user_id;
The user's ID on success, and false on failure.
Username to check.

Where the hook is called

wp-includes/user.php 1343
return apply_filters( 'username_exists', $user_id, $username );

Where the hook is used (in WP core)

Does not used.