WordPress File wp-includes/category-template.php

get_the_terms()

Retrieves the terms of the taxonomy that are attached to the post.

has_tag()

Checks if the current post has any of given tags.

has_term()

Checks if the current post has any of given terms.

in_category()

Checks if the current post is within any of the given categories.