get_category_by_slug
get_category_by_slug ( $slug )
Parameters:- (string) slug The category slug.
Returns:- (object|false) Category data object on success, false if not found.
Defined at: - Introduced in WordPress: 2.3.0
- Deprecated in WordPress: —
Description
Retrieves a category object by category slug.