WordPress tip: allow upload of more file types
Simply paste the following code on your functions.php file. If needed, you can add more file types by adding them on line 4, separated by a pipe (|)
<?php function addUploadMimes($mimes) { $mimes = array_merge($mimes, array( 'tmbundle|tmCommand|tmDragCommand|tmSnippet|tmLanguage|tmPreferences' => 'application/octet-stream' )); return $mimes; } ?> add_filter('upload_mimes', 'addUploadMimes');
Thanks to Pioupioum for this great piece of code!
By the way, I’m running a contest at CatsWhoBlog where you can win premium WordPress themes. Click here to join!
Looking for WordPress hosting? Try WP Web Host. Prices starts at $5/month and you can try it for free!