Menu
wpseek
mobile
Search
get_cat_id
get_cat_id
(
$cat_name
)
Parameters:
(string)
cat_name
Category name.
Returns:
(int) Category ID on success, 0 if the category doesn't exist.
Defined at:
wp-includes/category.php
, line 206
Introduced in WordPress:
1.0.0
Deprecated in WordPress:
—
Description
Retrieves the ID of a category from its name.
Related Functions
get_the_id
,
get_comment_id
,
get_cat_name
,
get_the_guid
,
get_comment_guid
Top Google Results
User discussions
More ...
New topic ...
wpseek
mobile
Recently added
1
wp_render_empty_block_template_warning
My Bookmarks
- Soon -
About
Imprint
Privacy Policy