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