Filters a sanitized username string.
Parameters
$username
string- Sanitized username.
$raw_username
string- The username prior to sanitization.
$strict
bool- Whether to limit the sanitization to specific characters.
Source
return apply_filters( 'sanitize_user', $username, $raw_username, $strict );
Changelog
Version | Description |
---|---|
2.0.1 | Introduced. |
Example migrated from Codex:
Filters a user name to be lower-cased after sanitization by sanitize_user()