gpld_supported_date_input_types

  1. Description
  2. Usage
  3. Parameters
  4. Since
  5. Examples
    1. Enable basic support for Date Field and Date Drop Down input types.

Description

Filter the date input types that are supported by GP Limit Dates.

Usage

add_filter( 'gpld_supported_date_input_types', 'my_custom_function' );

Parameters

  • $date_input_types array

    An array of supported date input types. Defaults to array( 'datepicker' ).

Since

This filter is available since Gravity Forms Limit Dates 1.1.32.

Examples

Enable basic support for Date Field and Date Drop Down input types.

When support is enabled Date Field and Date Drop Down input types, the date is only validated on submission. There is no frontend validation of the selected date.

add_filter( 'gpld_supported_date_input_types', function( $types ) {
	$types[] = 'datefield';
	$types[] = 'datedropdown';
	return $types;
} );