category_exists


category_exists ( $cat_name, $parent = null )

Parameters:
  • (int|string) $cat_name Category name.
  • (int) $parent Optional. ID of parent term.
See:
Returns:
  • (mixed)
Defined at:

Description

Check whether a category exists.

Related Functions

term_exists, tag_exists, wp_category_checklist, the_category_rss, get_category_parents

Top Google Results

User discussions

wpseek mobile