bookmark_bordergform_field_types_delete_files

Description

Allows additional files to be deleted when file deletion occurs by adding additional field types.

Usage

The following would apply to all forms.

add_filter( 'gform_field_types_delete_files', 'your_function_name' );

Parameters

  • $field_types array

    Field types which contain file uploads.

  • $form array

    The Form object

Placement

This code should be placed in the functions.php file of your active theme.

Source Code

This filter is located in forms_model.php