Created
March 28, 2019 17:29
-
-
Save itzmekhokan/ce0dc0ed388fe68dcef13d629d7b6758 to your computer and use it in GitHub Desktop.
Add additional file types support in wordpress mainly adobe illustrator files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function add_custom_upload_mimes( $mimes_types ) { | |
$mimes_types['eps'] = 'application/postscript'; // Adobe Illustrator files | |
$mimes_types['ai'] = 'application/postscript'; // Adobe Illustrator files | |
return $mimes_types; | |
} | |
add_filter( 'upload_mimes', 'add_custom_upload_mimes' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment