A WordPress-centric search engine for devs and theme authors



sanitize_text_field ›

Since2.9.0
Deprecatedn/a
apply_filters( 'sanitize_text_field', $filtered, $str )
Parameters: (2)
  • (string) $filtered The sanitized string.
    Required: Yes
  • (string) $str The string prior to being sanitized.
    Required: Yes
Defined at:
Codex:

Filters a sanitized text field string.





Source

return apply_filters( 'sanitize_text_field', $filtered, $str );