Skip to content

Instantly share code, notes, and snippets.

@awojtczyk
Created September 13, 2016 20:59
Show Gist options
  • Save awojtczyk/f4084cc453a2d67c8f577967da7a965b to your computer and use it in GitHub Desktop.
Save awojtczyk/f4084cc453a2d67c8f577967da7a965b to your computer and use it in GitHub Desktop.
function cc_mime_types($mimes) {
$mimes['svg'] = 'image/svg+xml';
return $mimes;
}
add_filter('upload_mimes', 'cc_mime_types');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment