apply_filters( ‘sanitize_user’, string $username, string $raw_username, bool $strict )

Filters a sanitized username string.

Parameters

$usernamestring
Sanitized username.
$raw_usernamestring
The username prior to sanitization.
$strictbool
Whether to limit the sanitization to specific characters.

Source

return apply_filters( 'sanitize_user', $username, $raw_username, $strict );

Changelog

VersionDescription
2.0.1Introduced.

User Contributed Notes

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