Description

Retrieves a single event category data.

Usage

em_get_category($term_id)

Parameters

  • $term_id | int – event category (term) ID (optional)
    In case the $term_id is not passed, function tries to automatically detect the requested object using get_queried_object() function.

Return

A term object. Returns FALSE if ‘event-category’ is disabled (not registered) or NULL if the $term_id was not given and querried object was not detected or in case of any other errors.