sanitize_textarea_field filter-hookWP 4.7.0

Filters a sanitized textarea field string.

Usage

add_filter( 'sanitize_textarea_field', 'wp_kama_sanitize_textarea_field_filter', 10, 2 );

/**
 * Function for `sanitize_textarea_field` filter-hook.
 * 
 * @param string $filtered The sanitized string.
 * @param string $str      The string prior to being sanitized.
 *
 * @return string
 */
function wp_kama_sanitize_textarea_field_filter( $filtered, $str ){

	// filter...
	return $filtered;
}
$filtered(string)
The sanitized string.
$str(string)
The string prior to being sanitized.

Changelog

Since 4.7.0 Introduced.

Where the hook is called

sanitize_textarea_field()
sanitize_textarea_field
wp-includes/formatting.php 5464
return apply_filters( 'sanitize_textarea_field', $filtered, $str );

Where the hook is used in WordPress

Usage not found.