Description #
This filter is used when uploading the files.
apply_filters('fluentform/file_uploaded', $uploadFile, $this->formData, $this->form);
Usage #
add_filter('fluentform/file_uploaded', function ($uploadFile, $formData, $form) {
// do your stuff
return $uploadFile;
}, 10, 3);
Parameters #
- $uploadFile (array) Files Uploded
- $formData (array) Form Data
- $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