首页 WordPress函数大全 is_taxonomy_hierarchical()

is_taxonomy_hierarchical()

2020-05-02 / 3805阅 / 悠然

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

is_taxonomy_hierarchical( string $taxonomy )

Determines whether the taxonomy object is hierarchical.

描述

Checks to make sure that the taxonomy is an object first. Then Gets the object, and finally returns the hierarchical value in the object.

A false return value might also mean that the taxonomy does not exist.

For more information> Conditional Tags article in the Theme Developer Handbook.

参数

$taxonomy

(string)
(Required)
Name of taxonomy object.

返回

(bool) Whether the taxonomy is hierarchical.

大家谈论
    我的见解