gpi_choice_inventory_limit

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

Description

Filter the inventory limit for choices.

Usage

Apply to all applicable fields on all forms.

add_filter( 'gpi_choice_inventory_limit', '__return_true' );

Apply to all applicable fields on a specific form.

add_filter( 'gpi_choice_inventory_limit_FORMID', '__return_true' );

Apply to a specific field on a specific form.

add_filter( 'gpi_choice_inventory_limit_FORMID_FIELDID', '__return_true' );

Parameters

  • inventory_limit int

    Inventory limit of the current choice.

  • choice array

    The current choice.

  • field GF_Field

    The current field.

  • form array

    The current form.

Since

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