Description
Filter whether files imported into the Media Library from a given entry should be deleted when the entry is deleted.
Usage
add_filter( 'gpml_delete_entry_files_from_media_library', '__return_false' );
Parameters
should_delete bool
Whether the entry’s Media Library files should be deleted. Defaults to
true
.entry_id int
The ID of the entry that has been deleted.
Since
This filter is available since Gravity Forms Media Library 1.2.7.