gpi_inventory_limit_simple

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

Description

Filter the inventory limit for fields using the Simple Inventory Type.

Usage

Apply to all fields on all forms.

add_filter( 'gpi_inventory_limit_simple', 'my_custom_function' );

Apply to all fields on a specific form.

add_filter( 'gpi_inventory_limit_simple_FORMID', 'my_custom_function' );

Apply to a specific field on a specific form.

add_filter( 'gpi_inventory_limit_simple_FORMID_FIELDID', 'my_custom_function' );

Parameters

  • inventory_limit int

    Inventory limit of the current field.

  • field GF_Field

    The current field.

Since

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