gpb_ics_sync_frequency
Description
Filter the recurring calendar sync interval for calendar configs. Applies to scheduled syncs for ICS feeds and GC Google Calendar connections.
Usage
Applied globally
add_filter( 'gpb_ics_sync_frequency', 'my_custom_function' );Parameters
$frequency
int
The sync frequency in seconds. Default HOUR_IN_SECONDS.
$config_id
int
The calendar config ID.
$object_id
int
The bookable object ID.
$object_type
string
The bookable object type.
Examples
Set calendar syncs to run every 30 minutes.
add_filter( 'gpb_ics_sync_frequency', function () {
return 30 * MINUTE_IN_SECONDS;
} );