---
title: "fswa_notification_inline_send — Filter Hook"
description: "Decide whether a delivery's notifications are sent at the end of the same request or left for cron. On by default for synchronous webhooks, off for queued ones."
url: "https://wpwebhooks.org/docs/fswa-notification-inline-send/"
---

[WP Webhooks](https://wpwebhooks.org/) / [Docs](https://wpwebhooks.org/docs/) / fswa\_notification\_inline\_send

Filter since v3.3.0

# fswa\_notification\_inline\_send

Decide whether a delivery's notifications are sent at the end of the same request or left for cron. On by default for synchronous webhooks, off for queued ones.

/ Signature

```
apply_filters( 'fswa_notification_inline_send', $inline, $ctx )
```

/ When it fires

Right after a rule has queued at least one notification for a delivery. A queued delivery already runs under cron, so its notifications go out on the next tick; a synchronous delivery ran inline with no cron involved, and without this its alerts would wait for a cron that may never run (`DISABLE_WP_CRON` on a site that only uses synchronous webhooks). The inline flush happens after the response is produced, and the cron event stays booked as a fallback either way.

/ Parameters

| Name | In | Type | Req | Description |
| --- | --- | --- | --- | --- |
| $inline | param | bool | yes | The default: \`true\` when the webhook that produced the event is synchronous, \`false\` when it was queued. |
| $ctx | param | array | yes | The delivery context handed to \`fswa\_delivery\_event\`: \`event\`, \`webhook\` (with \`is\_synchronous\`), \`trigger\`, \`attempt\`, \`http\_code\`, \`error\_message\`, \`payload\`, … |

/ Returns

`bool` \`true\` to flush on \`shutdown\` of the current request, \`false\` to book the one-shot cron event and spawn WP-Cron.

/ Examples

Keep synchronous webhooks fast: always leave sends to cron

```
add_filter( 'fswa_notification_inline_send', '__return_false' );
```

Send permanently-failed alerts inline even for queued deliveries

```
add_filter( 'fswa_notification_inline_send', function ( bool $inline, array $ctx ) {
    return $ctx['event'] === 'permanently_failed' ? true : $inline;
}, 10, 2 );
```

/ Related

[Notifications](https://wpwebhooks.org/docs/notifications/)[fswa\_delivery\_event](https://wpwebhooks.org/docs/fswa-delivery-event/)[fswa\_notification\_message](https://wpwebhooks.org/docs/fswa-notification-message/)

/Ready

## Your next automation is  
one sentence away.

[Install Plugin→](https://downloads.wordpress.org/plugin/flowsystems-webhook-actions.zip) [Try the Live Preview](https://playground.wordpress.net/?blueprint-url=https://wpwebhooks.org/blueprint.json) [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_notification_inline_send — Filter Hook — Webhook Actions Docs","description":"Decide whether a delivery's notifications are sent at the end of the same request or left for cron. On by default for synchronous webhooks, off for queued ones.","url":"https://wpwebhooks.org/docs/fswa-notification-inline-send/","isPartOf":{"@type":"WebSite","name":"WP Webhooks","url":"https://wpwebhooks.org"},"about":{"@type":"SoftwareApplication","name":"Webhook Actions","applicationCategory":"WordPress Plugin"}}
```
