Created
January 20, 2019 04:56
-
-
Save iamgabrielma/2afaa728e30f3827a224ec5d0e1cc3be to your computer and use it in GitHub Desktop.
Allow .kml file upload 1721841-zen
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 as many keys/values to the $mimes Array as needed | |
function gma_zen_1721841_custom_upload_mimes($mimes = array()) { | |
$mimes['kml'] = "application/xml"; | |
return $mimes; | |
} | |
add_action('upload_mimes', 'gma_zen_1721841_custom_upload_mimes'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment