首页 WordPress函数大全 sanitize_category_field()

sanitize_category_field()

2020-05-02 / 3223阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

sanitize_category_field( string $field, mixed $value, int $cat_id, string $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.

返回

(mixed) Same type as $value after $value has been sanitized.

大家谈论
    我的见解