get_catname()
get_catname( int $cat_ID )
根据类别ID检索类别名称。
Retrieve the category name by the category ID.
说明(Description)
另见函数 get_cat_name()
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$cat_ID | (int) | 必需 | 类别ID |
返回(Return)
(string)类别名称
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
2.8.0 | wp-includes/deprecated.php:1233 | 0 | 2 |
get_catname() 为WP2原创文章,链接:https://www.wp2.cn/functions/get_catname/