Filters the list of available post MIME types for the given post type.
Parameters
$mime_typesstring[]|null- An array of MIME types. Default null.
$typestring- The post type name. Usually
'attachment'but can be any post type.
Source
$mime_types = apply_filters( 'pre_get_available_post_mime_types', null, $type );
Changelog
| Version | Description |
|---|---|
| 6.4.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.