username_exists


username_exists ( $username )

Parameters:
  • (string) username The username to check for existence.
Returns:
  • (int|bool) The user ID on success, false on failure.
Defined at:

Description

Determines whether the given username exists.For more information on this and similar theme functions, check out the [Conditional Tags](https://developer.wordpress.org/themes/basics/conditional-tags/) article in the Theme Developer Handbook.

Related Functions

term_exists, email_exists, shortcode_exists, tag_exists, comment_exists

Top Google Results

User discussions

wpseek mobile