get_the_category_by_id
get_the_category_by_id ( $cat_id )
Parameters:- (int) cat_id Category ID.
Returns:- (string|WP_Error) Category name on success, WP_Error on failure.
Defined at: - Introduced in WordPress: 0.71
- Deprecated in WordPress: —
Description
Retrieves category name based on category ID.