Description

Filter whether or not to skip file uploads.


Passing a falsey value to the filter will effectively short-circuit any attempt at uploading files.


Parameters

$setting

(bool) (required) The setting to return

Default: false


$form_id

(int) (optional) The form ID

Default: the form ID


Examples

Skip file uploads for form ID 114:

   

add_filter( 'vfbp_skip_upload', 'vfbp_filter_skip_upload', 10, 2 );
 
function vfbp_filter_skip_upload( $setting, $form_id ){    
    if ( 114 == $form_id )    
        return true;
}