Skip to content

Instantly share code, notes, and snippets.

@aksamitnaya
Created May 31, 2018
Embed
What would you like to do?
add_filter( 'cherry_customizer_get_image_types', 'monstroid2_cherry_customizer_add_svg_mime_type' );
function monstroid2_cherry_customizer_add_svg_mime_type( $mimes = array() ) {
$mimes['svg'] = 'image/svg+xml';
return $mimes;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment