username_exists

过滤钩子


apply_filters( 'username_exists', $user_id, $username )
参数
  • (int|false)
    $user_id
    The user ID associated with the username,
    or false if the username does not exist.
    Required:
  • (string)
    $username
    The username to check for existence.
    Required:
定义位置
  • wp-includes/user.php
    , line 1936
引入
4.9.0
弃用

Filters whether the given username exists.

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