Webhook Actions icon
Developer Tools

Webhook Actions hooks reference

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.

functions.phpyour child theme
// 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

  • src/Services/QueueService.php line 44 · used in 4 places
    /**
     * Filter the maximum number of retry attempts for failed webhooks.
     */
    apply_filters( 'fswa_max_attempts', $resolvedAttempts, $webhookId );
  • src/Services/Dispatcher.php line 782 · used in 3 places
    /**
     * Fires after a webhook delivery fails.
     */
    do_action( 'fswa_error', $trigger, $url, (string) $errorMessage );
  • src/Services/QueueService.php line 160 · used in 2 places
    /**
     * Filter the backoff delay before rescheduling a failed webhook job.
     */
    apply_filters( 'fswa_backoff_delay', $delaySeconds, $newAttempts, $webhookId );
  • src/Services/PayloadTransformer.php line 99 · used in 2 places
    /**
     * 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 );
  • src/Services/Notifications/DeliveryEvents.php line 62 · used in 2 places
    /**
     * Fires at every delivery state change with the full context.
     */
    do_action( 'fswa_delivery_event', $event, $ctx );
  • src/Services/WPHttpTransport.php line 68 · used in 2 places
    /**
     * Filter the HTTP request arguments before sending.
     */
    apply_filters( 'fswa_http_args', $args, $url, $payload );
  • src/Services/Dispatcher.php line 423 · used in 2 places
    /**
     * 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 );
  • src/Api/WebhooksController.php line 279 · used in 2 places
    /**
     * Fires after a webhook is created. Extensions can persist additional fields.
     */
    do_action( 'fswa_webhook_saved', $webhookId, $request );
  • src/Abilities/AbilityRegistry.php line 70
    /**
     * Filter the agent/MCP ability definitions.
     */
    apply_filters( 'fswa_ability_definitions', $definitions );
  • src/Abilities/AbilityRegistrar.php line 258
    /**
     * 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 );
  • src/Support/UrlTemplate.php line 89
    /**
     * 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' );
  • src/Api/TriggersController.php line 96
    /**
     * Filter the grouped hook list. Array of [ category => [hookName, ...] ].
     */
    apply_filters( 'fswa_available_triggers', $grouped );
  • src/Services/Builds/PublishedPageProbe.php line 68
    /**
     * 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 );
  • src/Services/SiteEnvironment.php line 90
    /**
     * Whether this site may publish a build.
     */
    apply_filters( 'fswa_can_publish_build', true );
  • src/Support/CredentialScrubber.php line 295
    /**
     * Hooks that pass a password as a bare argument, by argument index.
     */
    apply_filters( 'fswa_credential_arg_positions', self::ARG_POSITIONS );
  • src/Services/Export/BuildExporter.php line 116
    /**
     * 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 );
  • src/Services/Export/BuildExporter.php line 272
    /**
     * Let extensions (Pro Code Glue) attach per-trigger data to the export doc.
     */
    apply_filters( 'fswa_export_trigger', $doc, $webhookId, $triggerName );
  • src/Services/GluePermissions.php line 216
    /**
     * Capability required to write a Code Glue snippet.
     */
    apply_filters( 'fswa_glue_capability', self::DEFAULT_CAPABILITY );
  • src/Hooks/PayloadGlueHooks.php line 118
    /**
     * Fires when an assigned Code Glue snippet errors during a real dispatch.
     */
    do_action( 'fswa_glue_error', $webhookId, $trigger, $stage, $snippetId, $error );
  • src/Services/Dispatcher.php line 864
    /**
     * 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 );
  • src/Services/Dispatcher.php line 713
    /**
     * Filter the HTTP headers sent with the webhook request.
     */
    apply_filters( 'fswa_headers', $headers, $webhook, $trigger );
  • src/Services/WPHttpTransport.php line 42
    /**
     * Filter the HTTP connection timeout in seconds.
     */
    apply_filters( 'fswa_http_connect_timeout', 2 );
  • src/Services/WPHttpTransport.php line 35
    /**
     * Filter the HTTP request timeout in seconds.
     */
    apply_filters( 'fswa_http_timeout', 5 );
  • src/Services/Export/BuildImporter.php line 297
    /**
     * Let extensions (Pro Code Glue) restore per-trigger data on import.
     */
    do_action( 'fswa_import_trigger', $webhookId, $triggerName, $trigger );
  • src/Services/LocalDevHttp.php line 51
    /**
     * 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 );
  • src/Abilities/AbilityRegistrar.php line 231
    /**
     * Filter whether write-scoped abilities reach the Abilities/MCP surface.
     */
    apply_filters( 'fswa_mcp_expose_writes', $enabled );
  • src/Services/Notifications/Channels/ChannelRegistry.php line 45
    /**
     * Filter the notification channel drivers. Append a ChannelDriver to add a
     * destination type.
     */
    apply_filters( 'fswa_notification_channel_drivers', $drivers );
  • src/Services/Notifications/Channels/AbstractHttpDriver.php line 57
    /**
     * Filter the HTTP arguments of an outgoing notification request.
     */
    apply_filters( 'fswa_notification_http_args', $args, $url, $this->type() );
  • src/Services/Notifications/NotificationDispatcher.php line 170
    /**
     * 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 );
  • src/Services/Notifications/MessageBuilder.php line 78
    /**
     * Filter the rendered notification before any channel formats it.
     */
    apply_filters( 'fswa_notification_message', $message, $rule ?? ($template !== null ? ['template' => $template] : []), $ctx );
  • src/Services/PayloadNormalizer.php line 68
    /**
     * 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 );
  • src/Support/PrivateStorage.php line 50
    /**
     * Move the plugin's private files somewhere else, for example a directory
     * outside the web root.
     */
    apply_filters( 'fswa_private_storage_dir', $root );
  • src/Services/HooksHandler.php line 57
    /**
     * Filter the number of jobs to process per batch.
     */
    apply_filters( 'fswa_queue_batch_size', 10 );
  • src/Support/UrlTemplate.php line 102
    /**
     * Filter whether HTTPS is required for webhook URLs.
     */
    apply_filters( 'fswa_require_https', !self::isLocalEnvironment() );
  • src/Support/CredentialScrubber.php line 139
    /**
     * Turn the credential scrub off for a trigger.
     */
    apply_filters( 'fswa_scrub_credentials', true, $hook );
  • src/Services/Dispatcher.php line 58
    /**
     * 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 );
  • src/Services/Dispatcher.php line 874
    /**
     * Fires after a successful webhook delivery.
     */
    do_action( 'fswa_success', $trigger, $url, $payload, $result );
  • src/Api/WebhooksController.php line 179
    /**
     * 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 );
  • src/Services/Dispatcher.php line 849
    /**
     * 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 );
  • src/Services/Dispatcher.php line 637
    /**
     * 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 );
  • src/Services/Ai/AnthropicTransport.php line 71 · used in 6 places
    apply_filters( 'fswa_ai_http_timeout', 120 );
  • src/Abilities/TestAbilities.php line 248 · used in 4 places
    apply_filters( 'fswa_webhook_payload', $payload, $id, $trigger, $originalPayload ?: null );
  • src/Api/AgentController.php line 538 · used in 3 places
    apply_filters( 'fswa_ai_hosted_status', null );
  • src/Services/Dispatcher.php line 133 · used in 2 places
    do_action( 'fswa_skipped', $trigger, $webhookId, $evalResult['failed_rule'] );
  • src/Services/Ai/TrialClient.php line 58
    apply_filters( 'fswa_ai_api_base', self::DEFAULT_API_BASE );
  • src/Services/Ai/LlmTransport.php line 58
    apply_filters( 'fswa_ai_transport', null );
  • src/Services/Ai/TrialClient.php line 278
    apply_filters( 'fswa_ai_trial_credits_per_run', self::CREDITS_PER_RUN );
  • src/Services/Ai/TrialClient.php line 265
    apply_filters( 'fswa_ai_trial_grant', self::DEFAULT_GRANT );
  • src/Services/Builds/PublishBuildClient.php line 65
    apply_filters( 'fswa_builds_publish_endpoint', self::ENDPOINT );
  • src/Services/Builds/PublishBuildClient.php line 69
    apply_filters( 'fswa_builds_publish_timeout', 60 );
  • src/Controllers/DispatcherController.php line 183
    do_action( 'fswa_cron_token_regenerated' );
  • src/Services/Export/BuildSchemaValidator.php line 47
    apply_filters( 'fswa_import_extra_root_keys', [] );
  • src/Services/PayloadNormalizer.php line 135
    apply_filters( 'fswa_normalize_object', null, $value );
  • src/Controllers/AdminController.php line 181
    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.

Plugin 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 this

Not 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: