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