WP Webhooks / 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

NameInTypeReqDescription
$docparamarrayyesThe trigger document (name, and schema: field mapping + conditions).
$webhook_idparamintyesThe webhook being exported.
$trigger_nameparamstringyesThe 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

Ready

Your next automation is
one sentence away.

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