- 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
+1 -1
View File
@@ -1982,7 +1982,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
$array['invalid_image'] = __( 'Please upload a valid image!', 'ultimate-member' );
}
if ( ! isset( $array['allowed_types'] ) ) {
$array['allowed_types'] = 'gif,jpg,jpeg,png';
$array['allowed_types'] = 'gif,jpg,jpeg,png,webp';
} else {
$array['allowed_types'] = implode( ',', $array['allowed_types'] );
}