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

Filters the list of allowed mime types and file extensions.


Parameters

$t

Mime types keyed by the file extension regex corresponding to those types.

$user

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
2.0.0 Introduced.