sanitize_mime_type WordPress Filter Hook

The sanitize_mime_type hook is used to filter the list of allowed mime types and file extensions. This hook is called before the allowed mime types and file extensions are checked.

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.


Top ↑

Source

File: wp-includes/formatting.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.1.3Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More