ControlledChaos of Controlled Chaos Design
8/9/2016 - 6:46 PM

Add SVG upload support in the media library.

Add SVG upload support in the media library.

<?php

function ccd_mime_types($mimes) {
  $mimes['svg'] = 'image/svg+xml';
  return $mimes;
}
add_filter( 'upload_mimes', 'ccd_mime_types' );

?>

Add SVG Support

WordPress Snippet