mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
Adds new filters to modify image field data on upload
This commit is contained in:
@@ -378,6 +378,9 @@ class UM_Files {
|
||||
}
|
||||
}
|
||||
|
||||
$data = apply_filters("um_image_handle_global__option", $data );
|
||||
$data = apply_filters("um_image_handle_{$field}__option", $data );
|
||||
|
||||
if ( $fileinfo['invalid_image'] == true ) {
|
||||
$error = sprintf(__('Your image is invalid or too large!','ultimatemember') );
|
||||
} elseif ( isset( $data['allowed_types'] ) && !$this->in_array( $fileinfo['extension'], $data['allowed_types'] ) ) {
|
||||
|
||||
Reference in New Issue
Block a user