Webhook Actions 3.4.3 has 11 actions and 43 filters, read directly from its source code on Nov 19, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when Webhook Actions fires an action
add_action( 'fswa_error', function( $trigger, $url, $arg3 ) {
// Your code runs here.
}, 10, 3 );
// Change a value Webhook Actions is about to use
add_filter( 'fswa_max_attempts', function( $resolvedAttempts, $webhookId ) {
// Change $resolvedAttempts here.
return $resolvedAttempts;
}, 10, 2 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * Filter the maximum number of retry attempts for failed webhooks. */ apply_filters( 'fswa_max_attempts', $resolvedAttempts, $webhookId ); -
/** * Fires after a webhook delivery fails. */ do_action( 'fswa_error', $trigger, $url, (string) $errorMessage ); -
/** * Filter the backoff delay before rescheduling a failed webhook job. */ apply_filters( 'fswa_backoff_delay', $delaySeconds, $newAttempts, $webhookId ); -
/** * Filters the payload just before it is stored as the captured example. Use * this to add or modify properties in the example payload only — it does not * affect what is dispatched to the endpoint. */ apply_filters( 'fswa_capture_payload', $payload, $webhookId, $trigger ); -
/** * Fires at every delivery state change with the full context. */ do_action( 'fswa_delivery_event', $event, $ctx ); -
/** * Filter the HTTP request arguments before sending. */ apply_filters( 'fswa_http_args', $args, $url, $payload ); -
/** * Fires after a queue batch was processed. The notification sender uses it to * flush pending notifications on every tick, external cron included. */ do_action( 'fswa_queue_processed', $result ); -
/** * Fires after a webhook is created. Extensions can persist additional fields. */ do_action( 'fswa_webhook_saved', $webhookId, $request ); -
/** * Filter the agent/MCP ability definitions. */ apply_filters( 'fswa_ability_definitions', $definitions ); -
/** * Filter whether the current request may invoke a Webhook Actions ability of * the given scope through the Abilities API. */ apply_filters( 'fswa_ability_permitted', $allowed, $scope ); -
/** * Filter whether endpoint URLs may use http://, private or local hosts and any * port. Default: true only when wp_get_environment_type() is 'local'. */ apply_filters( 'fswa_allow_local_endpoints', wp_get_environment_type() === 'local' ); -
/** * Filter the grouped hook list. Array of [ category => [hookName, ...] ]. */ apply_filters( 'fswa_available_triggers', $grouped ); -
/** * Host serving published build pages. Filterable so a local website build can * be waited on during development. */ apply_filters( 'fswa_builds_website_host', self::HOST ); -
/** * Whether this site may publish a build. */ apply_filters( 'fswa_can_publish_build', true ); -
/** * Hooks that pass a password as a bare argument, by argument index. */ apply_filters( 'fswa_credential_arg_positions', self::ARG_POSITIONS ); -
/** * Let extensions attach top-level blocks to the export document — e.g. Pro * bolting on an `ai_build` block (Build-with-AI transcript + model) when the * exported objects trace back to an AI Builder conversation. Mirrors the * per-trigger {@see 'fswa_export_trigger'} filter but for the whole document. */ apply_filters( 'fswa_export_doc', $doc, $webhookIds, $chainIds, $options ); -
/** * Let extensions (Pro Code Glue) attach per-trigger data to the export doc. */ apply_filters( 'fswa_export_trigger', $doc, $webhookId, $triggerName ); -
/** * Capability required to write a Code Glue snippet. */ apply_filters( 'fswa_glue_capability', self::DEFAULT_CAPABILITY ); -
/** * Fires when an assigned Code Glue snippet errors during a real dispatch. */ do_action( 'fswa_glue_error', $webhookId, $trigger, $stage, $snippetId, $error ); -
/** * Fires after a successful webhook delivery with both mapped and pre-mapping * payloads. Pro uses this to apply post-dispatch code snippets (Payload Glue). */ do_action( 'fswa_glue_post_dispatch', $webhookId, $trigger, $responseCode, $responseBody, $payload, $webhook, $originalPayload ); -
/** * Filter the HTTP headers sent with the webhook request. */ apply_filters( 'fswa_headers', $headers, $webhook, $trigger ); -
/** * Filter the HTTP connection timeout in seconds. */ apply_filters( 'fswa_http_connect_timeout', 2 ); -
/** * Filter the HTTP request timeout in seconds. */ apply_filters( 'fswa_http_timeout', 5 ); -
/** * Let extensions (Pro Code Glue) restore per-trigger data on import. */ do_action( 'fswa_import_trigger', $webhookId, $triggerName, $trigger ); -
/** * Filter the local self-signed TLS-skip decision. Default: true only when the * environment is 'local' AND the request targets the site's own host. */ apply_filters( 'fswa_local_skip_sslverify', $skip, $url, $args ); -
/** * Filter whether write-scoped abilities reach the Abilities/MCP surface. */ apply_filters( 'fswa_mcp_expose_writes', $enabled ); -
/** * Filter the notification channel drivers. Append a ChannelDriver to add a * destination type. */ apply_filters( 'fswa_notification_channel_drivers', $drivers ); -
/** * Filter the HTTP arguments of an outgoing notification request. */ apply_filters( 'fswa_notification_http_args', $args, $url, $this->type() ); -
/** * Filter whether this delivery's notifications are sent at the end of the * current request instead of waiting for cron. Defaults to true for a * synchronous webhook (the site already accepted inline latency for it) and * false for a queued one. */ apply_filters( 'fswa_notification_inline_send', !empty($ctx['webhook']['is_synchronous']), $ctx ); -
/** * Filter the rendered notification before any channel formats it. */ apply_filters( 'fswa_notification_message', $message, $rule ?? ($template !== null ? ['template' => $template] : []), $ctx ); -
/** * Filter the webhook payload before dispatching. */ apply_filters( 'fswa_payload', [ 'event' => [ 'id' => $eventId ?? wp_generate_uuid4(), 'timestamp' => $eventTimestamp ?? gmdate('Y-m-d\TH:i:s\Z'), 'version' => self::VERSION, ], 'hook' => $hook, 'args' => $normalized, 'timestamp' => time(), 'site' => [ 'url' => home_url(), ], ], $hook, $args ); -
/** * Move the plugin's private files somewhere else, for example a directory * outside the web root. */ apply_filters( 'fswa_private_storage_dir', $root ); -
/** * Filter the number of jobs to process per batch. */ apply_filters( 'fswa_queue_batch_size', 10 ); -
/** * Filter whether HTTPS is required for webhook URLs. */ apply_filters( 'fswa_require_https', !self::isLocalEnvironment() ); -
/** * Turn the credential scrub off for a trigger. */ apply_filters( 'fswa_scrub_credentials', true, $hook ); -
/** * Filter to decide if a trigger should be dispatched. Useful for resolving * conflicts with themes or plugins. */ apply_filters( 'fswa_should_dispatch', true, $trigger, $args ); -
/** * Fires after a successful webhook delivery. */ do_action( 'fswa_success', $trigger, $url, $payload, $result ); -
/** * Filter webhook data before it is returned in a REST response. Extensions can * append or transform fields here. */ apply_filters( 'fswa_webhook_data', $webhook, $request ); -
/** * Fires after a webhook HTTP response is received. Use this to process the * response per-webhook — e.g. parse the body, trigger follow-up actions, or * store data from the remote system. Fires for both success and error HTTP * responses (not transport failures). */ do_action( 'fswa_webhook_response', $webhookId, $trigger, $responseCode, $responseBody, $payload, $webhook ); -
/** * Filter the webhook URL before dispatch, allowing template expansion in the * URL path. Runs after the fswa_webhook_payload filter, so pre-glue-injected * values are available. */ apply_filters( 'fswa_webhook_url', $url, $payload, $webhook, $trigger, $originalPayload ); -
apply_filters( 'fswa_ai_http_timeout', 120 ); -
apply_filters( 'fswa_webhook_payload', $payload, $id, $trigger, $originalPayload ?: null ); -
apply_filters( 'fswa_ai_hosted_status', null ); -
do_action( 'fswa_skipped', $trigger, $webhookId, $evalResult['failed_rule'] ); -
apply_filters( 'fswa_ai_api_base', self::DEFAULT_API_BASE ); -
apply_filters( 'fswa_ai_transport', null ); -
apply_filters( 'fswa_ai_trial_credits_per_run', self::CREDITS_PER_RUN ); -
apply_filters( 'fswa_ai_trial_grant', self::DEFAULT_GRANT ); -
apply_filters( 'fswa_builds_publish_endpoint', self::ENDPOINT ); -
apply_filters( 'fswa_builds_publish_timeout', 60 ); -
do_action( 'fswa_cron_token_regenerated' ); -
apply_filters( 'fswa_import_extra_root_keys', [] ); -
apply_filters( 'fswa_normalize_object', null, $value ); -
apply_filters( 'http_allowed_safe_ports', [80, 443, 8080], '', '' );
Generated from Webhook Actions's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: