-
Notifications
You must be signed in to change notification settings - Fork 85
activitypub_dispatcher_retry_delay
github-actions[bot] edited this page Oct 23, 2025
·
1 revision
Filters the retry delay unit (in seconds).
Used to calculate exponential backoff: time() + (attempt * attempt * retry_delay_unit).
/**
* Filters the retry delay unit (in seconds).
*
* Used to calculate exponential backoff: time() + (attempt * attempt * retry_delay_unit).
*
* @param int $retry_delay_unit
* @return int The filtered value.
*/
function my_activitypub_dispatcher_retry_delay_callback( int $retry_delay_unit ) {
// Your code here.
return $retry_delay_unit;
}
add_filter( 'activitypub_dispatcher_retry_delay', 'my_activitypub_dispatcher_retry_delay_callback' );-
int$retry_delay_unitThe retry delay unit in seconds. Default ACTIVITYPUB_OUTBOX_RETRY_DELAY_UNIT.
apply_filters( 'activitypub_dispatcher_retry_delay', HOUR_IN_SECONDS )Follow @[email protected] for updates and news.