post_mime_types WordPress Filter Hook
The post_mime_types hook allows you to modify the default list of post mime types. This can be useful if you want to add support for a new type of file or override the default icon for an existing type.
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
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |