username_exists
username_exists ( $username )
Parameters:- (string) username The username to check for existence.
Returns:- (int|false) The user ID on success, false on failure.
Defined at: - Introduced in WordPress: 2.0.0
- Deprecated in WordPress: —
Description
Determines whether the given username exists.For more information on this and similar theme functions, check out
the {@link Conditional Tags} article in the Theme Developer Handbook.