apply_filters( 'upload_mimes', array $t, int|WP_User|null $user )

Filters list of allowed mime types and file extensions.


Parameters

$t

(array) Mime types keyed by the file extension regex corresponding to those types. 'swf' and 'exe' removed from full list. 'htm|html' also removed depending on '$user' capabilities.

$user

(int|WP_User|null) User ID, User object or null if not provided (indicates current user).


Source

File: wp-includes/functions.php

View on GitHub



Changelog

Changelog
Version Description
WP-2.0.0 Introduced.