sanitize_category()

基于上下文清理类别数据。

sanitize_category( object|array $category , string $context = ‘display’ )

参数(Parameters)

参数类型必填说明
$category(object | array)必需类别数据
$context(string)可选默认为“显示”。

返回(Return)

(object|array)与$category相同的类型,具有经过消毒的数据以供安全使用。

更新版本源码位置使用被使用
2.3.0wp-includes/category.php:24501 function
0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索