gpb_time_alignment_validation_result

  1. Description
  2. Usage
  3. Parameters

Description

Filter the time alignment validation result.

Usage

Applied globally

add_filter( 'gpb_time_alignment_validation_result', 'my_custom_function' );

Parameters

$time_found bool

Whether the time was found in the generated slots.

$start Carbon

The start time being validated.

$service Service

The service object.

$resources Resource[]

Array of selected resources.

$slot_mode string

The slot mode (‘aligned’ or ‘flexible’).

$interval int

The interval in minutes for flexible mode.