validate_username WordPress Filter Hook
The validate_username Wordpress hook is used to check whether a username is valid. This hook is called when a user tries to register or login.
apply_filters( 'validate_username', bool $valid , string $username ) #
Filters whether the provided username is valid.
Parameters
- $valid
(bool)Whether given username is valid.
- $username
(string)Username to check.
Source
File: wp-includes/user.php
Changelog
Version | Description |
---|---|
2.0.1 | Introduced. |