-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreadme.txt
39 lines (29 loc) · 1.01 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
=== Multi-MIME Uploads ===
Tags: upload, MIME types, file extensions, WordPress uploads
License: BSD-3-Clause license
License URI: https://opensource.org/licenses/BSD-3-Clause
Adds support for multiple MIME types per file extension during file uploads.
== Description ==
Multi-MIME Uploads enhances WordPress by allowing multiple MIME types to be associated with a single file extension during the upload process.
Usage:
```php
function add_mimes_callback( $mimes, $user ) {
$mimes['json'] = 'application/json';
$mimes['dwg'] = [
'application/acad',
'image/vnd.dwg',
];
return $mimes;
}
add_filter( 'multimimeup_add_mimes', 'add_mimes_callback', 10, 2 );
```
== Changelog ==
= 0.1.1 =
* Add validation to handle cases where the $mimes array is empty or the key $ext is not defined.
= 0.1.0 =
* Initial release.
== Upgrade Notice ==
= 0.1.1 =
* Add validation to handle cases where the $mimes array is empty or the key $ext is not defined.
= 0.1.0 =
* This is the first release of the plugin.