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

In this article

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

return apply_filters( 'username_exists', $user_id, $username );

Changelog

VersionDescription
4.9.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.