Last active
June 12, 2020 01:05
-
-
Save richardevcom/0f5486fe3e3e54ec86bd193a2a13b9d3 to your computer and use it in GitHub Desktop.
WordPress enable SVG mime-type
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Enable SVG mime-type | |
*/ | |
add_filter('upload_mimes', function($mimes){ | |
$mimes['svg'] = 'image/svg+xml'; | |
return $mimes; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment