Filter whether files imported into the Media Library from a given entry should be deleted when the entry is deleted.
Filter whether files should be deleted for all forms.
add_filter( 'gpml_delete_entry_files_from_media_library', '__return_false' );
Filter whether files should be deleted for a specific form.
add_filter( 'gpml_delete_entry_files_from_media_library_FORMID', '__return_false' );
Whether the entry’s Media Library files should be deleted. Defaults to
The ID of the entry that has been deleted.
The form that the entry is being deleted in.
This filter is available since Gravity Forms Media Library 1.2.7.