gpro_disable_datepicker

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

Description

Disable the datepicker for read-only Datepicker fields.

Usage

All forms, all fields.

add_filter( 'gpro_disable_datepicker', '__return_true' );

Specific form, all fields.

add_filter( 'gpro_disable_datepicker_{formId}', '__return_true' );

Specific form, specific field.

add_filter( 'gpro_disable_datepicker_{formId}_{fieldId}', '__return_true' );

Parameters

  • is_disabled bool

    Whether or not to disable the datepicker for this read-only input.

  • field \GF_Field_Date

    GF_Field_Date The current Date field object.

  • entry_id int

    The current entry ID; 0 when no entry ID is provided.

Source

This filter is located in GP_Read_Only::read_only_input() in class-gp-read-only.php.

Since

This filter is available since GP Read Only 1.2.13.