Filters the default list of post mime types.
Parameters
$post_mime_types
array- Default list of post mime types.
Source
return apply_filters( 'post_mime_types', $post_mime_types );
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |
Filters the default list of post mime types.
$post_mime_types
arrayreturn apply_filters( 'post_mime_types', $post_mime_types );
Version | Description |
---|---|
2.5.0 | Introduced. |
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.