<?php function daltonsutton_svg_mime_types($mimes) { $mimes['svg'] = 'image/svg+xml'; return $mimes; } add_filter('upload_mimes', 'daltonsutton_svg_mime_types');