W3cubDocs

/WordPress

apply_filters( 'sanitize_mime_type', string $sani_mime_type, string $mime_type )

Filters a mime type following sanitization.

Parameters

$sani_mime_type

(string) The sanitized mime type.

$mime_type

(string) The mime type prior to sanitization.

Source

File: wp-includes/formatting.php

View on Trac

Changelog

Version Description
3.1.3 Introduced.

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