username_exists


username_exists ( $username )

Parameters:
  • (string) $username Username.
Returns:
  • (int|false) The user's ID on success, and false on failure.
Defined at:

Description

Determines whether the given username exists.

For more information on this and similar theme functions, check out the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ 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