post (tag)

get_post_ancestors()

Gets the IDs of all parent posts for the specified one as an array.

get_post_mime_type()

Retrieves the mime type of attachment posts (images, files, etc.), based on the provided ID.