Custom Snippet

Use this tool to share WordPress snippets with the community.

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