gplc_remove_choices

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

Description

Filter whether choices should be removed.

Usage

Apply to all forms and fields.

add_filter( 'gplc_remove_choices', '__return_false' );

Apply to all fields of a specific form.

add_filter( 'gplc_remove_choices_FORMID', '__return_false' );

Apply to a specific form and field.

add_filter( 'gplc_remove_choices_FORMID_FIELDID', '__return_false' );

Parameters

  • remove_choices bool

    Should choices be removed? Defaults to true.

Since

This filter is available since GP Limit Choices 1.2.