Skip to content
Docs
Get RestroPress

Filter

rpress_webhooks_batch_size

Updated
On this page

Filters the maximum number of webhook deliveries one queue worker run picks up.

Applied in rpress_webhooks_process_queue() when it selects due rows. Values below 1 are raised to 1. A run also stops starting new deliveries after about 40 seconds, and another run is scheduled for rows still waiting.

Available since RestroPress 3.5.1.

Parameters#

ParameterTypeDescription
$batchintRows per run. Default 25.

Return value#

int. Rows per run.

Example#

add_filter( 'rpress_webhooks_batch_size', 'my_webhook_batch', 10, 1 );
function my_webhook_batch( $batch ) {
	return 50;
}

Source#

Applied in:

  • includes/features/webhooks/delivery.php (line 324), in rpress_webhooks_process_queue()

See also#

Was this page helpful?