get_category_by_slug


get_category_by_slug ( $slug )

Parameters:
  • (string) slug The category slug.
Returns:
  • (object|bool) Category data object on success, false if not found.
Defined at:

Description

Retrieves a category object by category slug.

Related Functions

get_category_by_path, get_category_link, get_the_category_by_id, get_category, get_category_rss_link

Top Google Results

User discussions

wpseek mobile