gpi_limit_by_paid_entries_only

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

Description

Filter whether only paid entries should count towards inventory limits.

Usage

Apply to all fields on all forms.

add_filter( 'gpi_limit_by_paid_entries_only', '__return_false' );

Apply to all fields on a specific form.

add_filter( 'gpi_limit_by_paid_entries_only_FORMID', '__return_false' );

Apply to a specific field on a specific form.

add_filter( 'gpi_limit_by_paid_entries_only_FORMID_FIELDID', '__return_false' );

Parameters

  • paid_entries_only bool

    Defaults to true.

  • field \GF_Field

    The current field for which inventory is about to be queried.

Since

This filter is available since Gravity Forms Inventory 1.0-beta-3.6.