WPDev.one
Core Function
View Source on Trac ↗

get_available_post_mime_types()

get_available_post_mime_types( mixed $type = 'attachment' )

Gets all available post MIME types for a given post type.

Parameters 1 required

Name / Type Description
string

$type

Required

Return Value

(string[])
An array of MIME types.

Function Information

Since Version
2.5.0
Source File
wp-includes/post.php
Advertisement