Skip to content

Instantly share code, notes, and snippets.

@andcam
Created October 27, 2020 11:26
Show Gist options
  • Save andcam/156745e3b3063d800194c847c0da9a2f to your computer and use it in GitHub Desktop.
Save andcam/156745e3b3063d800194c847c0da9a2f to your computer and use it in GitHub Desktop.
Wordpress - allow SVG media uploads
function ljxdm_upload_mime_types( $mimetypess ) {
$mimes['svg'] = 'image/svg+xml';
return $mimes;
}
add_filter( 'upload_mimes', 'ljxdm_upload_mime_types' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment