Skip to main content

Filter: gravityview_image_extensions

Filter the image extensions recognized by GravityView.

This is used to determine whether to display the file using <img /> tag or as a link. Also, it is used to determine whether to bypass secure downloads for media files.

Parameters

NameTypeDescription
$image_extsarrayDefault: ['jpg', 'jpeg', 'jpe', 'gif', 'png', 'bmp', 'tif', 'tiff', 'ico', 'webp', 'svg'].

Since

  • 1.0-beta

Source

Defined in src/Frontend/Image.php at line 133