2020-05-01 / 4572阅 / 悠然
Retrieve the mime type of an attachment based>
This function can be used with any post type, but it makes more sense with attachments.
(int|WP_Post)
(Optional)
Post ID or post object. Defaults to global $post.
Default value: null
(string|false) The mime type on success, false on failure.