Allowing SVG uploads in media uploader without plug-in
function cc_mime_types($mimes) { $mimes[‘svg’] = ‘image/svg+xml’; return $mimes; } add_filter(‘upload_mimes’, ‘cc_mime_types’); add in functions.php in your active theme define(‘ALLOW_UNFILTERED_UPLOADS’, true); add in wp-config.php