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 | |
---|
9 | function 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 | |
---|
16 | add_filter( 'post_mime_types', 'ticket_30788_post_mime_types' ); |
---|
17 | ?> |
---|