Feature Pro since v1.7.0
Code Glue
Attach short PHP snippets per webhook+trigger to enrich payloads before dispatch.
$
Write PHP snippets in the admin panel and attach them to a webhook+trigger combination. The snippet runs after payload mapping, receiving `$payload`, `$webhook`, `$trigger`, and `$original_payload`. Return a modified `$payload` array to replace the outgoing payload. Snippets can read WordPress data, look up post meta, call internal functions, or reshape fields without touching theme or plugin files.
/ Examples
Look up and inject a HubSpot deal ID from post meta
// Snippet receives: $payload, $webhook, $trigger, $original_payload $order_id = $payload['order_id'] ?? 0; $hs_deal_id = get_post_meta( $order_id, '_hs_deal_id', true ); $payload['hs_deal_id'] = $hs_deal_id; return $payload;
/ Related
Ready Stop losing webhooks.
Stop losing webhooks.
Start logging them.
$ wp plugin install flowsystems-webhook-actions --activate