Table of Contents
Using this filter you can change the 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 the pro version src/Uploader.php