sanitize_text_field filter-hook . WP 2.9.0
Filters a sanitized text field string.
Usage
add_filter( 'sanitize_text_field', 'filter_function_name_7371', 10, 2 ); function filter_function_name_7371( $filtered, $str ){ // filter... return $filtered; }
- $filtered(string)
- The sanitized string.
- $str(string)
- The string prior to being sanitized.
Changelog
Since 2.9.0 | Introduced. |
Where the hook is called
sanitize_text_field
wp-includes/formatting.php 5342
return apply_filters( 'sanitize_text_field', $filtered, $str );