Sanitizes data in single category key field.
Parameters
$field
stringrequired- Category key to sanitize.
$value
mixedrequired- Category value to sanitize.
$cat_id
intrequired- Category ID.
$context
stringrequired- What filter to use,
'raw'
,'display'
, etc.
Source
function sanitize_category_field( $field, $value, $cat_id, $context ) {
return sanitize_term_field( $field, $value, $cat_id, 'category', $context );
}
Changelog
Version | Description |
---|---|
2.3.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.