en

wpseek.com
A WordPress-centric search engine for devs and theme authors


  |     Browse all


get_post_mime_type [ WordPress Function ]

get_post_mime_type ( $ID = '' )
Parameters:
  • int $ID Optional. Post ID.
Returns:
  • bool|string False on failure or returns the mime type
Defined at:



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.

Examples [ wp-snippets.com ]

Top Google Search Results

More ...

User discussions [ wordpress.org ]

0 User Note(s)

None yet. Be the first!

Add New ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics