From bd2de5ff60a6b97c5afd1d36c34346b795d528cc Mon Sep 17 00:00:00 2001 From: Anastasio <73900974+anastas10s-afk@users.noreply.github.com> Date: Tue, 21 Mar 2023 22:44:14 +0200 Subject: [PATCH] Added WebP support, at allowed_image_mime_types --- plugins/woocommerce/includes/wc-rest-functions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/woocommerce/includes/wc-rest-functions.php b/plugins/woocommerce/includes/wc-rest-functions.php index 9eed8f4ed49..39f0b15d92b 100644 --- a/plugins/woocommerce/includes/wc-rest-functions.php +++ b/plugins/woocommerce/includes/wc-rest-functions.php @@ -54,6 +54,7 @@ function wc_rest_allowed_image_mime_types() { 'bmp' => 'image/bmp', 'tiff|tif' => 'image/tiff', 'ico' => 'image/x-icon', + 'webp' => 'image/webp', ) ); }