username_exists хук-фильтр . WP 4.9.0
Filters whether the given username exists.
Использование
add_filter( 'username_exists', 'filter_function_name_8135', 10, 2 ); function filter_function_name_8135( $user_id, $username ){ // filter... return $user_id; }
- $user_id(число/false)
- The user ID associated with the username, or false if the username does not exist.
- $username(строка)
- The username to check for existence.
Список изменений
С версии 4.9.0 | Введена. |
Где вызывается хук
username_exists
wp-includes/user.php 1618
return apply_filters( 'username_exists', $user_id, $username );