函数原型
get_catname( int $cat_ID ): string
函数描述
Retrieve the category name by the category ID.
是否弃用
Warning: This function has been deprecated. Use get_cat_name() instead.
函数参数
-
$cat_ID
int
Required - Category ID
函数返回值
string category name
函数位置
File: wp-includes/deprecated.php.
函数源码
function get_catname( $cat_ID ) {
_deprecated_function( __FUNCTION__, '2.8.0', 'get_cat_name()' );
return get_cat_name( $cat_ID );
}
源码链接
变更日志
| Version | Description |
|---|---|
| 2.8.0 | Use get_cat_name() |
| 0.71 | Introduced. |

