Created
August 1, 2017 11:07
-
-
Save Shininglow/51bda8d5d6b7c1ed9eb3a28b131ace6d 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
add_filter('upload_mimes','add_custom_mime_types'); | |
function add_custom_mime_types($mimes){ | |
return array_merge($mimes,array ( | |
'svg' => 'image/svg+xml' | |
)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment