按类别ID检索类别名称。
原型
get_catname( int $cat_ID )
参数
$cat_ID
(int)
(Required)
类别ID
返回值
(string)
分类名称
源文件
路径:wp-includes/deprecated.php
<?php
...
function get_catname( $cat_ID ) {
_deprecated_function( __FUNCTION__, '2.8.0', 'get_cat_name()' );
return get_cat_name( $cat_ID );
}
...
?>
其他
英文文档:https://developer.wordpress.org/reference/functions/get_catname/