[wp-trac] [WordPress Trac] #47904: Add ".chif" (C-Hear Intelligent File) to supported file types

WordPress Trac noreply at wordpress.org
Mon Aug 26 18:19:08 UTC 2019


#47904: Add ".chif" (C-Hear Intelligent File) to supported file types
---------------------------+------------------------------
 Reporter:  kennleuzinger  |       Owner:  (none)
     Type:  enhancement    |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Media          |     Version:
 Severity:  normal         |  Resolution:
 Keywords:  close          |     Focuses:
---------------------------+------------------------------

Comment (by kennleuzinger):

 Thank you!

 Replying to [comment:8 audrasjb]:
 > Hi,
 >
 > Yes, I think it's clearly "plugin territory".
 >
 > For what it worth: here is a PHP snippet you could use for your plugin
 or in the functions.php file of your (child) theme to allow this mime type
 in WordPress:
 >
 > {{{#!php
 > function wp_47904_mime_type( $mime_types ) {
 >       $mime_types['chif'] = 'application/octet-stream';
 >       return $mime_types;
 > }
 > add_filter( 'upload_mimes', 'wp_47904_mime_type', 1, 1 );
 > }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47904#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list