is_taxonomy

函数


is_taxonomy ( $taxonomy )
参数
  • (string)
    $taxonomy
    Name of taxonomy object
    Required:
返回值
  • (bool) Whether the taxonomy exists.
相关
  • taxonomy_exists()
定义位置
  • wp-includes/deprecated.php
    , line 2494
引入
2.3.0
弃用
3.0.0

Checks that the taxonomy name exists.

function is_taxonomy( $taxonomy ) {
	_deprecated_function( __FUNCTION__, '3.0.0', 'taxonomy_exists()' );
	return taxonomy_exists( $taxonomy );
}