gpb_ics_sync_max_retry_attempts

  1. Description
  2. Usage
  3. Parameters
  4. Examples
    1. Increase max retry attempts to 5.

Description

Filter the maximum number of retry attempts.

Usage

Applied globally

add_filter( 'gpb_ics_sync_max_retry_attempts', 'my_custom_function' );

Parameters

$max_attempts int

The maximum number of retry attempts. Default 3.

$config_id int

The calendar config ID.

$object_id int

The bookable object ID.

$object_type string

The bookable object type.

Examples

Increase max retry attempts to 5.

add_filter( 'gpb_ics_sync_max_retry_attempts', function ( $max_attempts ) {
    return 5;
}, 10, 1 );