public function add_additional_mime_type_support($post_mime_types)
    {
        $additional_mime_types = [
            'application/msword' => [
                \__('Word Docs', 'snap'),
                \__('Manage Word Docs', 'snap'),
                \_n_noop('Word Doc <span class="count">(%s)</span>', 'Word Docs <span class="count">(%s)</span>'),
            ],
            'application/vnd.ms-excel' => [
                \__('Excel Docs', 'snap'),
                \__('Manage Excel Docs', 'snap'),
                \_n_noop('Excel Doc <span class="count">(%s)</span>', 'Excel Docs <span class="count">(%s)</span>'),
            ],
            'application/pdf' => [
                \__('PDFs', 'snap'),
                \__('Manage PDFs', 'snap'),
                \_n_noop('PDF <span class="count">(%s)</span>', 'PDFs <span class="count">(%s)</span>'),
            ],
            'application/zip' => [
                \__('ZIPs', 'snap'),
                \__('Manage ZIPs', 'snap'),
                \_n_noop('ZIP <span class="count">(%s)</span>', 'ZIPs <span class="count">(%s)</span>'),
            ],
            'text/csv' => [
                \__('CSVs', 'snap'),
                \__('Manage CSVs', 'snap'),
                \_n_noop('CSV <span class="count">(%s)</span>', 'CSVs <span class="count">(%s)</span>'),
            ],
        ];

        return \array_merge($post_mime_types, $additional_mime_types);
    }
public function add_additional_mime_type_support($post_mime_types)
    {
        $additional_mime_types = [
            'application/msword' => [
                \__('Word Docs', 'snap'),
                \__('Manage Word Docs', 'snap'),
                \_n_noop('Word Doc <span class="count">(%s)</span>', 'Word Docs <span class="count">(%s)</span>'),
            ],
            'application/vnd.ms-excel' => [
                \__('Excel Docs', 'snap'),
                \__('Manage Excel Docs', 'snap'),
                \_n_noop('Excel Doc <span class="count">(%s)</span>', 'Excel Docs <span class="count">(%s)</span>'),
            ],
            'application/pdf' => [
                \__('PDFs', 'snap'),
                \__('Manage PDFs', 'snap'),
                \_n_noop('PDF <span class="count">(%s)</span>', 'PDFs <span class="count">(%s)</span>'),
            ],
            'application/zip' => [
                \__('ZIPs', 'snap'),
                \__('Manage ZIPs', 'snap'),
                \_n_noop('ZIP <span class="count">(%s)</span>', 'ZIPs <span class="count">(%s)</span>'),
            ],
            'text/csv' => [
                \__('CSVs', 'snap'),
                \__('Manage CSVs', 'snap'),
                \_n_noop('CSV <span class="count">(%s)</span>', 'CSVs <span class="count">(%s)</span>'),
            ],
        ];

        return \array_merge($post_mime_types, $additional_mime_types);
    }
public function add_additional_mime_type_support ( $ post_mime_types ) { $ additional_mime_types = [ 'application/msword' => [ \ __ ( 'Word Docs' , 'snap' ) , \ __ ( 'Manage Word Docs' , 'snap' ) , \ _n_noop ( 'Word Doc <span class="count">(%s)</span>' , 'Word Docs <span class="count">(%s)</span>' ) , ] , 'application/vnd.ms-excel' => [ \ __ ( 'Excel Docs' , 'snap' ) , \ __ ( 'Manage Excel Docs' , 'snap' ) , \ _n_noop ( 'Excel Doc <span class="count">(%s)</span>' , 'Excel Docs <span class="count">(%s)</span>' ) , ] , 'application/pdf' => [ \ __ ( 'PDFs' , 'snap' ) , \ __ ( 'Manage PDFs' , 'snap' ) , \ _n_noop ( 'PDF <span class="count">(%s)</span>' , 'PDFs <span class="count">(%s)</span>' ) , ] , 'application/zip' => [ \ __ ( 'ZIPs' , 'snap' ) , \ __ ( 'Manage ZIPs' , 'snap' ) , \ _n_noop ( 'ZIP <span class="count">(%s)</span>' , 'ZIPs <span class="count">(%s)</span>' ) , ] , 'text/csv' => [ \ __ ( 'CSVs' , 'snap' ) , \ __ ( 'Manage CSVs' , 'snap' ) , \ _n_noop ( 'CSV <span class="count">(%s)</span>' , 'CSVs <span class="count">(%s)</span>' ) , ] , ] ; return \ array_merge ( $ post_mime_types , $ additional_mime_types ) ; }
Add some additional mime type filters to media pages.

@since  1.0.0

@param  array $post_mime_types The current list of mime types.
@return array The original list with our additional types.
Add some additional mime type filters to media pages .