On this page
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
File: wp-includes/formatting.php. View all references
return apply_filters( 'sanitize_user', $username, $raw_username, $strict );
Related
Used By
| Used By | Description |
|---|---|
| sanitize_user() wp-includes/formatting.php | Sanitizes a username, stripping out unsafe characters. |
Changelog
| Version | Description |
|---|---|
| 2.0.1 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/sanitize_user