wp-includes/category-template.php:109Retrieves category name based on category ID.
$cat_idintstring|WP_Errorfunction get_the_category_by_ID( $cat_id ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid $cat_id = (int) $cat_id; $category = get_term( $cat_id ); if ( is_wp_error( $category ) ) { return $category; } return ( $category ) ? $category->name : '';}Introduced in 0.71. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-includes/category-template.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.