函数原型
is_taxonomy( string $taxonomy ): bool
函数描述
Checks that the taxonomy name exists.
是否弃用
Warning: This function has been deprecated. Use taxonomy_exists() instead.
函数参数
-
$taxonomy
string
Required -
Name of taxonomy object
函数返回值
bool Whether the taxonomy exists.
函数位置
File: wp-includes/deprecated.php
.
函数源码
function is_taxonomy( $taxonomy ) {
_deprecated_function( __FUNCTION__, '3.0.0', 'taxonomy_exists()' );
return taxonomy_exists( $taxonomy );
}
源码链接
变更日志
Version | Description |
---|---|
3.0.0 | Use taxonomy_exists() |
2.3.0 | Introduced. |