---
title: "fswa_export_trigger — Filter Hook"
description: "Attach per-trigger data to a webhook trigger block during export."
url: "https://wpwebhooks.org/docs/fswa-export-trigger/"
---

[WP Webhooks](https://wpwebhooks.org/) / [Docs](https://wpwebhooks.org/docs/) / fswa\_export\_trigger

Filter since v2.4.0

# fswa\_export\_trigger

Attach per-trigger data to a webhook trigger block during export.

/ Signature

```
apply_filters( 'fswa_export_trigger', $doc, $webhook_id, $trigger_name )
```

/ When it fires

Fires once per exported trigger. Pro listens here to serialize the pre/post Code Glue snippets assigned to that webhook+trigger so they travel with the export.

/ Parameters

| Name | In | Type | Req | Description |
| --- | --- | --- | --- | --- |
| $doc | param | array | yes | The trigger document (name, and schema: field mapping + conditions). |
| $webhook\_id | param | int | yes | The webhook being exported. |
| $trigger\_name | param | string | yes | The trigger (WordPress action) name. |

/ Returns

`array` The trigger document, optionally enriched (e.g. Pro adds a \`code\_glue\` block).

/ Examples

The code\_glue block Pro attaches per trigger

```
{
  "name": "wpcf7_mail_sent",
  "schema": { "field_mapping": {}, "conditions": null },
  "code_glue": { "pre": { "name": "Enrich", "code": "..." }, "post": null }
}
```

/ Related

[Import & Export](https://wpwebhooks.org/docs/import-export/)[fswa\_export\_doc](https://wpwebhooks.org/docs/fswa-export-doc/)[fswa\_import\_trigger](https://wpwebhooks.org/docs/fswa-import-trigger/)

/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_export_trigger — Filter Hook — Webhook Actions Docs","description":"Attach per-trigger data to a webhook trigger block during export.","url":"https://wpwebhooks.org/docs/fswa-export-trigger/","isPartOf":{"@type":"WebSite","name":"WP Webhooks","url":"https://wpwebhooks.org"},"about":{"@type":"SoftwareApplication","name":"Webhook Actions","applicationCategory":"WordPress Plugin"}}
```
