'archive' => array
( _x( 'Archives', 'file type group'
),
__( 'Manage Archives'
),
/* translators: %s: Number of archives. */
_n_noop( 'Archive <span class="count">(%s)</span>',
'Archives <span class="count">(%s)</span>'
),
),
);
$ext_types =
wp_get_ext_types();
$mime_types =
wp_get_mime_types();
foreach ( $post_mime_types as $group =>
$labels ) { if ( in_array( $group, array
( 'image', 'audio', 'video'
), true
) ) { continue;
} if ( !
isset( $ext_types[ $group ] ) ) { unset( $post_mime_types[ $group ] );
continue;
}