Skip to content

Instantly share code, notes, and snippets.

@michaelmusgrove
Created October 10, 2014 01:40
Show Gist options
  • Save michaelmusgrove/24f97b5d0169deef0cfc to your computer and use it in GitHub Desktop.
Save michaelmusgrove/24f97b5d0169deef0cfc to your computer and use it in GitHub Desktop.
Add SVG upload support to your WordPress blog
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