Codex tools: Log in / create account
Contents |
Retrieve the mime type of an attachment based on the ID.
This function can be used with any post type, but it makes more sense with attachments.
<?php get_post_mime_type( $ID ) ?>
Since: 2.0.0
get_post_mime_type() is located in wp-includes/post.php.