Description
The wsf_dropzonejs_upload_path filter allows you to change the default upload location for DropzoneJS uploads for the File field.
Usage
add_filter( 'wsf_dropzonejs_upload_path', 'my_hook_function', 10, 4 );
Parameters
Example
// Callback function for the wsf_dropzonejs_upload_path filter hook function my_hook_function( $file_path, $ws_form_upload_dir, $form_id, $field_id ) { // Your code here ... // Return value return $file_path; } // Add a callback function for the wsf_dropzonejs_upload_path filter hook add_filter( 'wsf_dropzonejs_upload_path', 'my_hook_function', 10, 4 );
Source File
This hook can be found in:<plugin root>/api/class-ws-form-api-field.php