check_upload_mimes

SummerySummery

Check an array of MIME types against a whitelist.

Syntax

check_upload_mimes( array $mimes )

DescriptionDescription

WordPress ships with a set of allowed upload filetypes, which is defined in wp-includes/functions.php in get_allowed_mime_types(). This function is used to filter that list against the filetype whitelist provided by Multisite Super Admins at wp-admin/network/settings.php.

ParametersParameters

$mimes

(array) (Required)

ReturnReturn

(array)

SourceSource

File: wp-includes/ms-functions.php


			

ChangelogChangelog

Changelog
Version Description
MU (3.0.0) Introduced.
Scroll to Top