Default SVG support for WP All Import
-
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)
Viewing 1 replies (of 1 total)
- The topic ‘Default SVG support for WP All Import’ is closed to new replies.