string $username, string $raw_username, bool $strict )
Filters a sanitized username string.
The username prior to sanitization.
Whether to limit the sanitization to specific characters.
View all references
return apply_filters( 'sanitize_user', $username, $raw_username, $strict );
Example migrated from Codex:
Filters a user name to be lower-cased after sanitization by sanitize_user()