Skip to content

Instantly share code, notes, and snippets.

@richardtape
Created October 11, 2012 18:05
Show Gist options
  • Save richardtape/3874366 to your computer and use it in GitHub Desktop.
Save richardtape/3874366 to your computer and use it in GitHub Desktop.
Add SVG Mimetype
function my_myme_types($mime_types){
$mime_types['svg'] = 'image/svg+xml';
return $mime_types;
}
add_filter('upload_mimes', 'my_myme_types', 1, 1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment