apply_filters( 'upload_mimes', array $t , int|WP_User|null $user )
Filters list of allowed mime types and file extensions.
Parameters
- $t
-
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
-
User ID, User object or null if not provided (indicates current user).
Source
Changelog
Version | Description |
---|---|
WP-2.0.0 | Introduced. |