wsf_submit_export_file_size_zip

Description

The wsf_submit_export_file_size_zip filter allows you to specify the minimum size in bytes that WS Form will change a Submissions export to a ZIP file instead of a CSV file.

Usage

add_filter( 'wsf_submit_export_file_size_zip', 'my_hook_function', 10, 1 );

Parameters

  1. $file_size Integer
    File size in bytes.
    Default value: 524288

Example

// Callback function for the wsf_submit_export_file_size_zip filter hook
function my_hook_function( $file_size ) {
	
	// Your code here ...

	// Return value
	return $file_size;
}

// Add a callback function for the wsf_submit_export_file_size_zip filter hook
add_filter( 'wsf_submit_export_file_size_zip', 'my_hook_function', 10, 1 );

Source File

This hook can be found in: <plugin root>/api/class-ws-form-api-submit.php