W3cubDocs

/WordPress

apply_filters( 'mime_types', string[] $wp_get_mime_types )

Filters the list of mime types and file extensions.

Description

This filter should be used to add, not remove, mime types. To remove mime types, use the ‘upload_mimes’ filter.

Parameters

$wp_get_mime_types

(string[]) Mime types keyed by the file extension regex corresponding to those types.

Source

File: wp-includes/functions.php

View on Trac

Changelog

Version Description
3.5.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/mime_types