Why does Wordpress not permit svg image files by default?
SVG image type not showing in wordpress
function my_media_types($media_types){ $media_types['svg'] = 'image/svg+xml'; $media_types['psd'] = 'image/vnd.adobe.photoshop'; return $media_types;}add_filter('upload_mimes', 'my_media_types', 1, 1);
by defalut wordpress not support svg because svg conveted to xml file when you can set .svg image than it's all data as a xml format for security reason wordpress not allow by defalut svg or site hacked by xml file because xml show all data