category_exists()

category_exists()函数是Wordpress函数,检查类别是否存在。

category_exists( int|string $cat_name, int $parent = null )

说明(Description)

另见函数 term_exists()


参数(Parameters)

参数类型必填说明
$cat_name(int | string)必需类别名称。
$parent(int)可选父项的ID。

返回(Return)

(mixed)


源码(Source)

//暂无
更新版本源码位置使用被使用
2.0.0wp-admin/includes/taxonomy.php:2421 function
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索