Created
November 25, 2019 14:31
-
-
Save mehranhadidi/97364a0f76c75778df8d666c83a8bfd1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
add_filter('mime_types', 'my_mimes'); | |
function my_mimes($all) | |
{ | |
// I cannot have both because wordpress doesn't allow it but i need both because each file can be one of these mime types | |
// $all['eps'] = 'application/postscript'; | |
$all['eps'] = 'image/x-eps'; | |
return $all; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment