- allow webp image format

This commit is contained in:
ashubawork
2025-09-22 12:48:39 +03:00
parent d756391f1f
commit 4d2a992843
2 changed files with 10 additions and 7 deletions
+9 -6
View File
@@ -822,12 +822,15 @@ if ( ! class_exists( 'um\core\Files' ) ) {
* }
* ?>
*/
return apply_filters( 'um_allowed_image_types', array(
'png' => 'PNG',
'jpeg' => 'JPEG',
'jpg' => 'JPG',
'gif' => 'GIF'
) );
return apply_filters(
'um_allowed_image_types',
array(
'png' => 'PNG',
'jpeg' => 'JPEG',
'jpg' => 'JPG',
'webp' => 'WEBP',
)
);
}