Add file type category within the media library

Adding this snippet to the functions.php of your wordpress theme will add a new file type category within the media library for application/x-shockwave-flash mime type. This is a great snippet when you have a lot of files so that you can sort by category.

 

 

function modify_post_mime_types($post_mime_types) {
$post_mime_types['application/x-shockwave-flash'] = array(__( 'mimeframe' ), __('Manage Flash'), _n_noop( 'Flash <span class="count">(%s)</span>', 'Flash <span class="count">(%s)</span>'));
return $post_mime_types;
}
add_filter('post_mime_types', 'modify_post_mime_types');

Leave a comment