get_category_by_slug


get_category_by_slug ( $slug )

Parameters:
  • (string) $slug The category slug.
Returns:
  • (object) Category data object
Defined at:

Description

Retrieve category object by category slug.

Related Functions

get_category_by_path, get_the_category_by_id, get_category_link, get_category, get_category_rss_link

Top Google Results

User discussions

wpseek mobile