WordPress at a glance
function is not described

sanitize_category_field() WP 2.3.0

Sanitizes data in single category key field.

No Hooks.

Return

Mixed. Same type as $value after $value has been sanitized.

Usage

sanitize_category_field( $field, $value, $cat_id, $context );
$field(string) (required)
Category key to sanitize.
$value(mixed) (required)
Category value to sanitize.
$cat_id(int) (required)
Category ID.
$context(string) (required)
What filter to use, 'raw', 'display', etc.

Changelog

Since 2.3.0 Introduced.

Code of sanitize_category_field() WP 5.5.1

<?php
function sanitize_category_field( $field, $value, $cat_id, $context ) {
	return sanitize_term_field( $field, $value, $cat_id, 'category', $context );
}