Filters whether the provided username is valid.
$validbool
$usernamestring
return apply_filters( 'validate_username', $valid, $username );
| Version | Description |
|---|---|
| 2.0.1 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/validate_username