gpdec_should_delete_entry

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

Description

Filter whether an entry should be deleted. Use this filter to add delayed entry deletion scenarios.

Usage

Filter whether an entry should be deleted for all forms.

add_filter( 'gpdec_should_delete_entry', '__return_true' );

Filter whether an entry should be deleted for a specific form.

add_filter( 'gpdec_should_delete_entry_FORMID', '__return_true' );

Parameters

  • should_delete_entry bool

    Whether entry should be deleted.

  • entry array

    Current entry.

  • form array

    Current form.

Since

This filter is available since Gravity Forms Disable Entry Creation 2.0.2.