Description
The wsf_dropzonejs_image_size filter allows you to change the default file size for DropzoneJS previews for the File field.
Usage
add_filter( 'wsf_dropzonejs_image_size', 'my_hook_function', 10, 1 );
Parameters
$image_size
StringThe default WordPress image size.Default value:thumbnail
Example
// Callback function for the wsf_dropzonejs_image_size filter hook function my_hook_function( $image_size ) { // Your code here ... // Return value return $image_size; } // Add a callback function for the wsf_dropzonejs_image_size filter hook add_filter( 'wsf_dropzonejs_image_size', 'my_hook_function', 10, 1 );
Source File
This hook can be found in:<plugin root>/includes/core/class-ws-form-file-handler.php