Switch language
wpseek on Twitter


A WordPress-centric search engine for devs and theme authors




get_available_post_mime_types [ ]

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



{@internal Missing Short Description}}

Source

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;
}

Top Google Search Results

More ...

User discussions [ wordpress.org ]

User Note(s)