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:

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_main_site_id

Top Google Results

User discussions

wpseek mobile