category_exists
category_exists ( $cat_name, $parent = null )
Parameters:- (int|string) cat_name Category name.
- (int) parent Optional. ID of parent term.
See:Returns:Defined at: - Introduced in WordPress: 2.0.0
- Deprecated in WordPress: —
Description
Check whether a category exists.