Feature Pro since v1.7.0
Post-Dispatch Scripting
Run PHP code after a successful delivery to process the response and write data back to WordPress.
$
Attach a post-dispatch snippet to a webhook+trigger. It fires via `fswa_glue_post_dispatch` after a 2xx response. The snippet receives `$response_code`, `$response_body`, `$payload` (the sent payload), `$webhook`, and `$original_payload`. Use it to parse the response, persist returned IDs to post meta, or trigger follow-up logic.
/ Examples
Store a HubSpot deal ID returned in the response
// Snippet receives: $response_code, $response_body, $payload, $webhook, $original_payload $data = json_decode( $response_body, true ); if ( isset( $data['id'], $payload['order_id'] ) ) { update_post_meta( $payload['order_id'], '_hs_deal_id', $data['id'] ); }
/ Related
Ready Stop losing webhooks.
Stop losing webhooks.
Start logging them.
$ wp plugin install flowsystems-webhook-actions --activate