Enable SVG uploads

Code snippets should be placed in your functions.php file or extracted in to your own custom plugin.

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