<?php
class ITC_SVG_Upload_Webp {

    /* This allows to upload webp files */
    function webp_file_ext( $types, $file, $filename, $mimes ) {
        // As of WordPress 5.8, WebP files are supported by default.
    }

    function webp_file_upload( $mimes ) {
        // As of WordPress 5.8, WebP files are supported by default.
    }

    /* Preview Webp files */
    function preview_webp_thumbnail( $result, $path ) {
        // As of WordPress 5.8, WebP files are supported by default.
    }
}
