get_post_mime_type [ WordPress-Funktionen ]
get_post_mime_type ( $ID = '' )
| Parameter: |
|
| Gibt zurück: |
|
| Definiert in: |
|
| Codex |
Ähnliche Funktionen: get_post_mime_types, get_post_type, get_post_types, get_post_time, get_available_post_mime_types
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.
Beispiele [ wp-snippets.com ]
Top Google Suchergebnisse
- Function Reference/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 - Справочник по функциям/get post mime type « WordPress Codex
Описание. Возвращает mime-тип вложения на основе его ID. Эта функция может быть использована с любым типом записей, но больше смысла ...
codex.wordpress.org - WordPress › Support » Style a Post's uploaded media
... do PDF stuff } else if (get_post_mime_type($attachment->ID) == 'application/ msword') { // do WORD stuff } else if (get_post_mime_type($attachment->ID) ...
wordpress.org - get_post_mime_type (WordPress Function) - WPSeek.com
Retrieve the mime type of an attachment based on the ID. WordPress lookup for get_post_mime_type, a WordPress Function.
wpseek.com
