gpb_show_unavailable_slots

  1. Description
  2. Usage
  3. Parameters

Description

Filter whether to show or hide unavailable slots. Defaults to true for the day endpoint and false for the simple display mode endpoint (/availability/slots).

Usage

Applied globally

add_filter( 'gpb_show_unavailable_slots', 'my_custom_function' );

Parameters

$show_unavailable bool

Whether to show unavailable slots (true) or hide them (false).

$service_id int

Service ID.

$resource_ids array

Resource IDs.

$context string

Endpoint context: ‘day’ or ‘simple’.