Created
October 10, 2014 01:40
-
-
Save michaelmusgrove/24f97b5d0169deef0cfc to your computer and use it in GitHub Desktop.
Add SVG upload support to your WordPress blog
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', 'my_upload_mimes'); | |
function my_upload_mimes($mimes = array()) { | |
$mimes['svg'] = 'image/svg+xml'; | |
return $mimes; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment