apply_filters( ‘validate_username’, bool $valid, string $username )

In this article

Filters whether the provided username is valid.

Parameters

$validbool
Whether given username is valid.
$usernamestring
Username to check.

Source

return apply_filters( 'validate_username', $valid, $username );

Changelog

VersionDescription
2.0.1Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.