Skip to content

Instantly share code, notes, and snippets.

@stompweb
Last active November 3, 2017 16:17
Show Gist options
  • Save stompweb/0028a248f945c434a732 to your computer and use it in GitHub Desktop.
Save stompweb/0028a248f945c434a732 to your computer and use it in GitHub Desktop.
<?php
function stomp_mime_types($mimes) {
$mimes['svg'] = 'image/svg+xml';
return $mimes;
}
add_filter('upload_mimes', 'stomp_mime_types');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment