insertar svg wn wordpress code example
Example: usar svg en wordpress
function dmc_add_svg_mime_types($mimes) {
if ( current_user_can('administrator') ){
$mimes['svg'] = 'image/svg+xml';
}
return $mimes;
}
add_filter('upload_mimes', 'dmc_add_svg_mime_types');