---
title: "fswa_queue_batch_size — Filter Hook"
description: "Sets the number of queue jobs processed per batch run."
url: "https://wpwebhooks.org/docs/fswa-queue-batch-size/"
---

[WP Webhooks](https://wpwebhooks.org/) / [Docs](https://wpwebhooks.org/docs/) / fswa\_queue\_batch\_size

Filter since v1.0.0

# fswa\_queue\_batch\_size

Sets the number of queue jobs processed per batch run.

/ Signature

```
apply_filters( 'fswa_queue_batch_size', $size )
```

/ When it fires

Fires at the start of each queue processing run.

/ Parameters

| Name | In | Type | Req | Description |
| --- | --- | --- | --- | --- |
| $size | param | int | yes | Number of jobs per batch. Default: \`10\`. |

/ Returns

`int` Batch size. Minimum: 1.

/ Examples

Process more jobs per batch on a high-volume store

```
add_filter( 'fswa_queue_batch_size', function ( $size ) {
    return 25;
} );
```

/ Related

[Async Delivery Queue](https://wpwebhooks.org/docs/async-queue/)[Action Scheduler Support](https://wpwebhooks.org/docs/action-scheduler/)

/Ready

## Your next automation is  
one sentence away.

[Install Plugin→](https://wordpress.org/plugins/flowsystems-webhook-actions/) [See the Plugin →](https://wpwebhooks.org/wordpress-webhook-plugin/)

$ wp plugin install flowsystems-webhook-actions --activate

## Structured data

```json
{"@context":"https://schema.org","@type":"TechArticle","name":"fswa_queue_batch_size — Filter Hook — Webhook Actions Docs","description":"Sets the number of queue jobs processed per batch run.","url":"https://wpwebhooks.org/docs/fswa-queue-batch-size/","isPartOf":{"@type":"WebSite","name":"WP Webhooks","url":"https://wpwebhooks.org"},"about":{"@type":"SoftwareApplication","name":"Webhook Actions","applicationCategory":"WordPress Plugin"}}
```
