gpb_ics_feed_statuses

  1. Description
  2. Usage
  3. Parameters
  4. Examples
    1. Exclude cancelled bookings from all ICS feeds.
  5. Since

Description

Filter booking statuses included in ICS feeds.

Usage

Applied globally

add_filter( 'gpb_ics_feed_statuses', 'my_custom_function' );

Parameters

$statuses string[]

Booking statuses to include.

$feed_type string

Feed type: all, service, or resource.

$object_id int|null

Optional service/resource ID for scoped feeds.

Examples

Exclude cancelled bookings from all ICS feeds.

add_filter( 'gpb_ics_feed_statuses', function ( $statuses ) {
    return array_values( array_diff( $statuses, [ 'cancelled' ] ) );
} );

Since

  • 1.0-beta-1.3 Hook added.