Created
July 12, 2017 18:38
-
-
Save Farmatique/e45eaaad5bcb439c3d9bdc2ca4f26f1a to your computer and use it in GitHub Desktop.
allow wordpress to upload svg
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
| /* insert inside functions.php */ | |
| function cc_mime_types($mimes) { | |
| $mimes['svg'] = 'image/svg+xml'; | |
| return $mimes; | |
| } | |
| add_filter('upload_mimes', 'cc_mime_types'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment