清理单个类别键字段中的数据。
sanitize_category_field(string $field,mixed $value,int $cat_id,string $context)
参数(Parameters)
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| $field | (string) | 必需 | 要清理的类别键 |
| $value | (mixed) | 必需 | 要清理的类别值 |
| $cat_id | (int) | 必需 | 类别ID |
| $context | (string) | 必需 | 使用什么过滤器,“原始”、“显示”等。 |
返回(Return)
(mixed)在清除$value之后与$value的类型相同。
| 更新版本 | 源码位置 | 使用 | 被使用 |
|---|---|---|---|
| 2.3.0 | wp-includes/category.php:260 | 0 | 1 function |





















