diff --git a/includes/core/class-fields.php b/includes/core/class-fields.php index 7ad67b6f..d868345f 100644 --- a/includes/core/class-fields.php +++ b/includes/core/class-fields.php @@ -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'] ); } diff --git a/includes/core/class-files.php b/includes/core/class-files.php index 3722d962..be091959 100644 --- a/includes/core/class-files.php +++ b/includes/core/class-files.php @@ -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', + ) + ); }