projects
/
WP-Themes
/
TomsMomsCookies.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dfec521
)
Add EPS file upload support
author
Laury GvR
<laury@gaslightmedia.com>
Thu, 12 Feb 2015 20:19:03 +0000
(15:19 -0500)
committer
Laury GvR
<laury@gaslightmedia.com>
Thu, 12 Feb 2015 20:19:03 +0000
(15:19 -0500)
functions.php
patch
|
blob
|
history
diff --git
a/functions.php
b/functions.php
index
0c3e202
..
18cd77e
100755
(executable)
--- a/
functions.php
+++ b/
functions.php
@@
-95,5
+95,15
@@
return $enqueue_styles;
// Or just remove them all in one line
add_filter( 'woocommerce_enqueue_styles', '__return_false' );
+
+add_filter('upload_mimes', 'custom_upload_mimes');
+function custom_upload_mimes ( $existing_mimes=array() )
+{
+ // Add *.EPS files to Media upload
+ $existing_mimes['eps'] = 'application/postscript';
+ // Add *.AI files to Media upload
+ $existing_mimes['ai'] = 'application/postscript';
+ return $existing_mimes;
+}
?>