Using this filter you can change the file upload directory of fluentforms default file upload location.
apply_filters('fluentform/default_upload_path', $path, $form);
Usage #
add_filter('fluentform/default_upload_path', function ($path, $form) {
return wp_upload_dir()['basedir'].'/test';
}, 10, 2);
Parameters #
- $path (string) Upload Path
- $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 FluentFormPro\src\Uploader -> copyToDefault($files)