Description #
Using this filter you can modify the file upload validation rules and messages.
apply_filters('fluentform/file_upload_validations',[$rules, $messages],$this->form);
Usage #
add_filter('fluentform/file_upload_validations', function ($validations, $form) {
// do your stuff
return $validations;
}, 10, 2);
Parameters #
- $validations (array) Validation Rules
- $form (object) Form Object
Placement #
This code should be placed in the functions.php file of your active theme.
Source Code #
This filter is located in the pro version src/Uploader.php