首页 WordPress函数大全 category_exists()

category_exists()

2020-05-02 / 2208阅 / 悠然

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

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

检查是否存在类别。

描述

See also See also

  • term_exists()

Top ↑

参数

$cat_name

(int|string)
(Required)
Category name.

$parent

(int)
(Optional)
ID of parent term.

Default value: null

返回

(mixed)

大家谈论
    我的见解