首页 WordPress函数大全 sanitize_category()

sanitize_category()

2020-05-02 / 2830阅 / 悠然

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

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

根据>清理类别数据

Contents

  • Description
    • Parameters
    • Return
    • Source
    • Changelog
  • Related
    • Uses
  • User Contributed Notes

描述

参数

$category

(object|array)
(Required)
Category data

$context

(string)
(Optional)
Default is 'display'.

Default value: 'display'

返回

(object|array) Same type as $category with sanitized data for safe use.

大家谈论
    我的见解