gpb_ics_feed_statuses
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.3Hook added.