apply_filters( 'post_mime_types', array $post_mime_types )
Filters the default list of post mime types.
Parameters
-
$post_mime_types
array -
Default list of post mime types.
Source
File: wp-includes/post.php
.
View all references
return apply_filters( 'post_mime_types', $post_mime_types );
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
To unset and rename some items in the dropdown filter for media items:
I had to resort to this because apparently, restricting all these file types using upload_mimes filter still doesn’t remove these items in the dropdown.