Documentation Functions wpcom-caching.php wpcom_vip_get_category_by_slug()

wpcom_vip_get_category_by_slug

Cached version of get_category_by_slug.

Parameters

Name Type Description

$slug

string

Category slug

Return Value

object or null or bool: Term Row from database. Will return null if $slug doesn't match a term. If taxonomy does not exist then false will be returned.