wpseek.com
A WordPress-centric search engine for devs and theme authors



username_exists › WordPress Filter Hooks

Since4.9.0
Deprecatedn/a
apply_filters( 'username_exists', $user_id, $username )
Parameters: (2)
  • (int|false) $user_id The user ID associated with the username, or false if the username does not exist.
    Required: Yes
  • (string) $username The username to check for existence.
    Required: Yes
Defined at:
Codex:

Filters whether the given username exists.





Source

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