is_taxonomy()
is_taxonomy( string $taxonomy )
检查分类名称是否存在。
Checks that the taxonomy name exists.
说明(Description)
另见函数 taxonomy_exists()
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$taxonomy | (string) | 必需 | 分类对象名称 |
返回(Return)
(bool)分类法是否存在。
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
3.0.0 | wp-includes/deprecated.php:2486 | 0 | 2 |
is_taxonomy() 为WP2原创文章,链接:https://www.wp2.cn/functions/is_taxonomy/