Core Function
View Source on Trac ↗ get_cat_name()
get_cat_name( mixed $cat_id ) Retrieves the name of a category from its ID.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $cat_id int | Category ID. Required |
Return Value
(string)
Category name, or an empty string if the category doesn't exist.
Function Information
Since Version
1.0.0
Source File
wp-includes/category.php
Advertisement