get_cat_ID( string $cat_name )
Retrieves the ID of a category from its name.
Parameters
- $cat_name
-
(Required) Category name.
Return
(int) Category ID on success, 0 if the category doesn't exist.
Source
File: wp-includes/category.php
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |