Last active
March 11, 2023 10:04
-
-
Save gmmedia/6e09201c5d4f39e3827fcfc4bf1474c6 to your computer and use it in GitHub Desktop.
Allow SVG usage in WordPress
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 | |
// Allow SVG usage in WordPress | |
function bloggerpilot_cc_mime_types($mimes) { | |
$mimes['svg'] = 'image/svg+xml'; | |
return $mimes; | |
} | |
add_filter('upload_mimes', 'bloggerpilot_cc_mime_types'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment