Created
March 6, 2014 14:20
-
-
Save ginocremer/9390731 to your computer and use it in GitHub Desktop.
Upload erlauben von .swf, .tiff, .rtf oder .zip
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
add_filter('upload_mimes', 'eigene_upload_mimes'); | |
function eigene_upload_mimes( $vorhandene_mimes ){ | |
$vorhandene_mimes['zip'] = 'application/zip'; | |
$vorhandene_mimes['swf'] = 'application/x-shockwave-flash'; | |
$vorhandene_mimes['rtf'] = 'text/richtext'; | |
$vorhandene_mimes['tiff'] = 'image/tiff'; | |
return $vorhandene_mimes; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment