gpml_delete_entry_files_from_media_library

  1. Description
  2. Usage
  3. Parameters
  4. Since

Description

Filter whether files imported into the Media Library from a given entry should be deleted when the entry is deleted.

Usage

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' );

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.

  • form array

    The form that the entry is being deleted in.

Since

This filter is available since Gravity Forms Media Library 1.2.7.