gpi_requested_quantity

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

Description

Filter the requested inventory amount.

This filter needs to be used in conjunction with gpi_claimed_inventory.

Usage

Apply to all applicable fields on all forms.

add_filter( 'gpi_requested_quantity', 'my_custom_function' );

Apply to all applicable fields on a specific form.

add_filter( 'gpi_requested_quantity_FORMID', 'my_custom_function' );

Apply to a specific field on a specific form.

add_filter( 'gpi_requested_quantity_FORMID_FIELDID', 'my_custom_function' );

Parameters

  • requested_quantity int

    Amount of inventory requested.

  • field \GF_Field

    The current field.

Since

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