sanitize_category_field
sanitize_category_field ( $field, $value, $cat_id, $context )
Parameters:- (string) field Category key to sanitize.
- (mixed) value Category value to sanitize.
- (int) cat_id Category ID.
- (string) context What filter to use, 'raw', 'display', etc.
Returns:- (mixed) Value after $value has been sanitized.
Defined at: - Introduced in WordPress: 2.3.0
- Deprecated in WordPress: —
Description
Sanitizes data in single category key field.