gpcld_use_visitor_timezone

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

Description

By default, Conditional Logic Dates will use the server’s timezone for conditional logic.

Return true in a filter for this hook to use the visitor browser’s timezone instead.

Usage

Filter whether visitor timezones should be used for all forms.

add_filter( 'gpcld_use_visitor_timezone', '__return_true' );

Filter whether visitor timezones should be used for a specific form.

add_filter( 'gpcld_use_visitor_timezone_FORMID', '__return_true' );

Parameters

  • enable bool

    Use visitor’s timezone instead of the server’s timezone for conditional logic. Defaults to false.

  • form_id int

    The current form ID.

Since

This filter is available since Gravity Forms Conditional Logic Dates 1.2.11.