boolean_smtp_queue_batch_size
Filters how many queued messages one worker run sends.
filter Tier B Since 1.0.0
The worker runs from WP-Cron when a message is queued or a retry is due, and from `wp boolean-smtp queue:work`; each run sends up to this many messages, oldest first, and arms another run while rows remain.
Signature
add_filter( 'boolean_smtp_queue_batch_size', $callback, 10, 1 );Parameters
| Parameter | Type | Description |
|---|---|---|
$size | int | Messages per run. Default `50`. |
Returns int — Messages per run.
Fires in
app/Services/Queue/QueueScheduler.php:100—BooleanSmtp\Services\Queue\QueueScheduler::batchSize()
Example
add_filter( 'boolean_smtp_queue_batch_size', function ( int $size ) { return $size;}, 10, 1 );Next steps
- Delivery lifecycle — every hook in this area, in firing order where that applies.
- Hook Explorer — filter and search every hook.