get_post_mime_types [ WordPress Function ]
get_post_mime_types ( No parameters )
| Returns: |
|
| Defined at: |
|
Similar Functions: get_post_mime_type, get_post_types, get_post_type, get_available_post_mime_types, get_allowed_mime_types
Get default post mime types
Source
<?php
function get_post_mime_types() {
$post_mime_types = array( // array( adj, noun )
'image' => array(__('Images'), __('Manage Images'), _n_noop('Image <span class="count">(%s)</span>', 'Images <span class="count">(%s)</span>')),
'audio' => array(__('Audio'), __('Manage Audio'), _n_noop('Audio <span class="count">(%s)</span>', 'Audio <span class="count">(%s)</span>')),
'video' => array(__('Video'), __('Manage Video'), _n_noop('Video <span class="count">(%s)</span>', 'Video <span class="count">(%s)</span>')),
);
return apply_filters('post_mime_types', $post_mime_types);
}
?>
Examples [ wp-snippets.com ]
Top Google Search Results
- get_post_mime_type - WordPress Codex
Description. 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.
codex.wordpress.org - WordPress › Support » Cannot insert media, error message
Fatal error: Call to undefined function get_post_mime_types() in /home/xxxxxx/ public_html/noonecaresaboutwhatyoudo.com/wp-admin/includes/media.php on ...
wordpress.org - get_post_mime_types | A HitchHackers guide through WordPress
Feb 12, 2011 ... function get_post_mime_types() { $post_mime_types = array( // array( adj, noun ) 'image' => array(__('Images'), __('Manage Images'), ...
hitchhackerguide.com - get_post_mime_type (WordPress Function) - WPSeek.com
WordPress lookup for get_post_mime_type, a WordPress Function. wpseek.com is a WordPress-centric search tool for developers and theme authors.
wpseek.com