Thanks that would be great! Awesome plugin by the way.
Isn’t it strange that it won’t allow me to select the image tho? Since I can upload it and an SVG is accepted as far as I see
public static function addTypeValidation($validation)
{
$valid_extensions = array(
'bmp',
'gif',
'jpeg',
'jpg',
'png',
'svg',
'webp',
);
$valid_extensions = apply_filters( 'toolset_valid_image_extentions', $valid_extensions);
$validation['extension'] = array(
'args' => array(
'extension',
implode('|', $valid_extensions),
),
'message' => __( 'You can add only images.', 'wpv-views' ),
);
return $validation;
}