apply_filters( ‘pre_get_available_post_mime_types’, string[]|null $mime_types, string $type )

In this article

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

VersionDescription
6.4.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.