WordPress.org

Make WordPress Core

Ticket #30788: ticket-30788.php

File ticket-30788.php, 513 bytes (added by mdgl, 5 years ago)

Plugin Ticket 30788

Line 
1<?php
2/**
3 * Plugin Name: Ticket 30788
4 * Description: Test Plugin for Ticket 30788
5 * Version: 1.0
6 * Author: Mike Glendinning
7 */
8
9function ticket_30788_post_mime_types( $types ) {
10        $docmimes = 'text/plain,application/pdf';
11        if ( !isset( $types[$docmimes] ) )
12                $types[$docmimes] = array( 'Documents', 'Manage Documents', _n_noop( 'Document <span class="count">(%s)</span>', 'Documents <span class="count">(%s)</span>' ) );
13        return $types;
14}
15
16add_filter( 'post_mime_types', 'ticket_30788_post_mime_types' );
17?>