Allow WEBP and Other File Types to be Uploaded in WordPress
WordPress allows a number of file types to be uploaded by default (e.g. PNG, JPG, etc.). For the file types that are not allowed, it will display an error message when you try to upload them: "Sorry, this file type is not permitted for security reasons."