Description #
Using this filter you can modify the file upload validation errors.
apply_filters('fluentform/file_upload_validation_error', $errors,$this->form);
Usage #
add_filter('fluentform/file_upload_validation_error', function ($errors, $form) {
// do your stuff
return $errors;
}, 10, 2);
Parameters #
- $errors (array) Validation Errors
- $form (object) Form Object
Placement #
This code should be placed in the functions.php file of your active theme.
Source Code #
apply_filters(‘fluentform/file_upload_validation_error’, $errors, $this->form);
This filter is located in FluentFormPro\src\Uploader -> upload()