wpseek.com
WordPress开发者和主题制作者的搜索引擎



is_taxonomy › WordPress Function

Since2.3.0
已弃用3.0.0
is_taxonomy ( $taxonomy )
参数:
  • (string) $taxonomy Name of taxonomy object
    Required: Yes
查看:
返回:
  • (bool) Whether the taxonomy exists.
定义在:
文档:

Checks that the taxonomy name exists.



源码

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