gpeb_filter_field_filter_choices

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

Description

Filter whether to use the experimental feature to filter choices in a filter field to only those present in the filtered entries.

Whew, this is a lot of filtering!

Usage

Filter whether to filter choices for all filter fields.

add_filter( 'gpeb_filter_field_filter_choices', '__return_true' );

Filter field choices in a specific form.

add_filter( 'gpeb_filter_field_filter_choices_FORMID', '__return_true' );

Filter a specific field’s choices.

add_filter( 'gpeb_filter_field_filter_choices_FORMID_FIELDID', '__return_true' );

Parameters

  • use_limit_choices bool

    Whether to use the feature.

  • field \GF_Field

    The field object.

  • form array

    The form object.

Since

This filter is available since Gravity Forms Entry Blocks 1.0-beta-1.3.