Created
February 27, 2017 22:15
-
-
Save greenhornet79/230c3c9ab8761c0a843f62505b49b781 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
| <?php | |
| function endo_allow_csv_uploads( $mime_types ) { | |
| $mime_types['csv'] = 'text/csv'; | |
| return $mime_types; | |
| } | |
| add_filter('upload_mimes', 'endo_allow_csv_uploads'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment