• ResolvedPlugin Contributor kubiq

    (@kubiq)


    add_filter( 'wp_all_import_image_mime_type', function( $mime_type, $image_filepath ){
    	if( empty( $mime_type ) && substr( $image_filepath, -4 ) == '.svg' ){
    		return 'image/svg+xml';
    	}
    	return $mime_type;
    }, 10, 2 );

    Can we add this small snippet into this plugin to enable SVG by default also for WP All Import plugin?

Viewing 1 replies (of 1 total)
  • Plugin Author Pedro

    (@petredobrescu)

    Thanks for the suggestion and Pull Request @kubiq, we’ll surely add this to the next release of the plugin!

    Best wishes

Viewing 1 replies (of 1 total)
  • The topic ‘Default SVG support for WP All Import’ is closed to new replies.