Created
February 25, 2015 02:39
-
-
Save bryceadams/4a27defb1b4564da3f83 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| function custom_list_of_myme_types( $mime_types ) { | |
| $mime_types = array( | |
| 'pdf' => 'application/pdf', | |
| 'doc' => 'application/msword', | |
| ); | |
| return $mime_types; | |
| } | |
| add_filter('upload_mimes', 'custom_list_of_myme_types', 1, 1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment