Enables to upload SVG in WordPress

Today SVG files became pretty popular. Especially for icons or logos. Some reason WordPress doesn’t allow us to upload in Media Library. What a shame. Place this snippet in function.php and you can upload your SVG files like a charm. Nice!

Spread the code