Switch language

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




get_available_post_mime_types [ WordPress Function ]

get_available_post_mime_types ( $type = 'attachment' )
Parameters:
  • (unknown_type) $type
Returns:
  • (unknown)
Defined at:



{@internal Missing Short Description}}

Source


<?php
function get_available_post_mime_types($type 'attachment') {
    global 
$wpdb;

    
$types $wpdb->get_col($wpdb->prepare("SELECT DISTINCT post_mime_type FROM $wpdb->posts WHERE post_type = %s"$type));
    return 
$types;
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



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