W3cubDocs

/WordPress

apply_filters( 'validate_username', bool $valid, string $username )

Filters whether the provided username is valid or not.

Parameters

$valid

(bool) Whether given username is valid.

$username

(string) Username to check.

Source

File: wp-includes/user.php

View on Trac

Changelog

Version Description
2.0.1 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/validate_username