gpi_claimed_inventory

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

Description

Filter the amount of inventory that has been claimed.

This filter may need to be used in conjunction with gpi_requested_quantity.

Usage

Apply to all applicable fields on all forms.

add_filter( 'gpi_claimed_inventory', 'my_custom_function' );

Apply to all applicable fields on a specific form.

add_filter( 'gpi_claimed_inventory_FORMID', 'my_custom_function' );

Apply to a specific field on a specific form.

add_filter( 'gpi_claimed_inventory_FORMID_FIELDID', 'my_custom_function' );

Parameters

  • claimed_inventory int

    The amount of inventory that has been claimed.

  • field \GF_Field

    The current field for which the inventory has been claimed.

Since

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