sanitize_textarea_field WordPress Filter Hook
The sanitize_textarea_field hook is used to sanitize textarea fields in Wordpress. This is a useful hook to use when you need to make sure that the data in a textarea field is clean and safe before it is saved to the database.
apply_filters( 'sanitize_textarea_field', string $filtered , string $str ) #
Filters a sanitized textarea field string.
Parameters
- $filtered
(string)The sanitized string.
- $str
(string)The string prior to being sanitized.
Source
Changelog
Version | Description |
---|---|
4.7.0 | Introduced. |