apply_filters( 'upload_mimes', array $t , int|WP_User|null $user )
Filters list of allowed mime types and file extensions.
Description Description
Parameters 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 Source
Changelog Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |
User Contributed Notes User Contributed Notes
You must log in before being able to contribute a note or feedback.
Add MIME types.
Expand full source codeCollapse full source code