apply_filters( 'upload_mimes', array $t , int|WP_User|null $user )
Filters list of allowed mime types and file extensions.
Parameters Parameters
- $t
-
(array) Mime types keyed by the file extension regex corresponding to those types.
- $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.
(example taken from @dotmastaz’s feedback)
Allow SVGZ mime type:
And if you want to know what is your real file mime type, you can use this service: https://wp-check-mime-type.com/.
Add MIME types.
Expand full source codeCollapse full source code
Feedback
Allow SVGZ mime type:
And if you want to know what is your real file mime type, you can use this service: https://wp-check-mime-type.com/. — By dotMastaz —