Skip to content

Instantly share code, notes, and snippets.

@momin-riyadh
Last active March 23, 2016 07:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save momin-riyadh/9c7daaab1b20a91acd05 to your computer and use it in GitHub Desktop.
Save momin-riyadh/9c7daaab1b20a91acd05 to your computer and use it in GitHub Desktop.
Custom Wordpress SVG support // Add it on function php file
// SVG Support
function cc_mime_types($mimes) {
$mimes['svg'] = 'image/svg+xml';
return $mimes;
}
add_filter('upload_mimes', 'cc_mime_types');
@momin-riyadh
Copy link
Author

svg support for wordpress function php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment