Table of Contents
Description #
Using this filter you can change the upload directory.
apply_filters('fluentform_file_upload_params', $param, $this->formData, $this->form);
Usage #
add_filter('fluentform_survey_shortcode_defaults', function ($param, $formData, $form) {
// do your stuff
return $param;
}, 10, 3);
Parameters #
- $param (array) Upload Parameters
- $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