Created
October 25, 2012 00:39
-
-
Save benmay/3949825 to your computer and use it in GitHub Desktop.
Allow WP to upload SRT files.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'upload_mimes', array( &$this, 'mimes' ) ); | |
function mimes ( $existing_mimes=array() ) | |
{ | |
$existing_mimes['srt'] = 'text/plain'; | |
return $existing_mimes; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment