is_term
函数
is_term ( $term, $taxonomy = '', $parent = 0 )
- 参数
-
-
(int|string)
$term
The term to check- Required: 是
-
(string)
$taxonomy
The taxonomy name to use- Required: 否
- Default: (empty)
-
(int)
$parent
ID of parent term under which to confine the exists search.- Required: 否
-
(int|string)
- 返回值
-
- (mixed) Get the term ID or term object, if exists.
- 相关
-
- term_exists()
- 定义位置
-
-
wp-includes/deprecated.php
, line 2511
-
wp-includes/deprecated.php
- 引入
- 2.3.0
- 弃用
- 3.0.0
Check if Term exists.
function is_term( $term, $taxonomy = '', $parent = 0 ) { _deprecated_function( __FUNCTION__, '3.0.0', 'term_exists()' ); return term_exists( $term, $taxonomy, $parent ); }
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。