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.


Top ↑

Source

File: wp-includes/formatting.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More