Created
June 30, 2014 18:32
-
-
Save mateusneves/fcb30975ca482836a796 to your computer and use it in GitHub Desktop.
Mime type extended, for upload files in WordPress
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('upload_mimes', 'custom_upload_mimes'); | |
function custom_upload_mimes ( $existing_mimes=array() ) { | |
// add the file extension to the array | |
$existing_mimes['cdr'] = 'mime/type'; | |
// call the modified list of extensions | |
return $existing_mimes; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment