gpnf_enable_duplication

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

Description

Enable the “Duplicate” action for child entries.

Usage

Apply to all Nested Form fields on all forms.

add_filter( 'gpnf_enable_duplication', '__return_true' );

Apply to all Nested Form fields on a specific form.

add_filter( 'gpnf_enable_duplication_FORMID', '__return_true' );

Apply to a specific Nested Form field on a specific form.

add_filter( 'gpnf_enable_duplication_FORMID_FIELDID', '__return_true' );

Parameters

  • enable_duplication bool

    Is duplication enabled? Defaults to false.

  • form array

    The current parent form.

  • field \GP_Field_Nested_Form

    The current Nested Form field.

Since

This filter is available since Gravity Forms Nested Forms 1.0.