Core Function
View Source on Trac ↗ username_exists()
username_exists( mixed $username ) Determines whether the given username exists.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $username string | The username to check for existence. Required |
Return Value
((int)
| false) The user ID on success, false on failure.
Function Information
Since Version
2.0.0
Source File
wp-includes/user.php
Advertisement