A WordPress-centric search engine for devs and theme authors



sanitize_user ›

Since2.0.1
Deprecatedn/a
apply_filters( 'sanitize_user', $username, $raw_username, $strict )
Parameters: (3)
  • (string) $username Sanitized username.
    Required: Yes
  • (string) $raw_username The username prior to sanitization.
    Required: Yes
  • (bool) $strict Whether to limit the sanitization to specific characters. Default false.
    Required: Yes
Defined at:
Codex:

Filters a sanitized username string.





Source

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