gpi_should_cache_object

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

Description

Filter whether to cache the object.

Usage

Apply to all fields on all forms.

add_filter( 'gpi_should_cache_object', 'my_custom_function' );

Apply to all fields on a specific form.

add_filter( 'gpi_should_cache_object_FORMID', 'my_custom_function' );

Apply to a specific field on a specific form.

add_filter( 'gpi_should_cache_object_FORMID_FIELDID', 'my_custom_function' );

Parameters

  • cache bool

    Whether to cache the object.

  • field_id int

    Field ID.

  • form_id int

    Form ID.

Since

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