On this page
apply_filters( 'validate_username', bool $valid, string $username )
Filters whether the provided username is valid.
Parameters
$validbool-
Whether given username is valid.
$usernamestring-
Username to check.
Source
File: wp-includes/user.php. View all references
return apply_filters( 'validate_username', $valid, $username );
Related
Used By
| Used By | Description |
|---|---|
| validate_username() wp-includes/user.php | Checks whether a username is valid. |
Changelog
| Version | Description |
|---|---|
| 2.0.1 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/validate_username