Webhook Recovery for WooCommerce

Description

WooCommerce powers millions of e-commerce stores worldwide, but its default webhook architecture has a critical vulnerability: zero automated retries for transient delivery failures.

When an external ERP, CRM, warehouse management system, or invoicing service experiences a brief 30-second network glitch, a 504 Gateway Timeout, or a temporary database lock, WooCommerce permanently marks the delivery as failed. Even worse, after 5 consecutive failures, WooCommerce automatically and silently switches the entire webhook to Disabled status—paralyzing downstream order processing without any alert.

Webhook Recovery for WooCommerce intercepts failed webhook deliveries in real time and offloads them to WooCommerce’s background Action Scheduler for intelligent, automated retries.

Free Features (Lite Version)

  • Failure Interception: Records failed webhook deliveries as WooCommerce sends them.
  • Automated Action Scheduler Retries: Background retries with increasing delays (2 minutes, 10 minutes, 30 minutes, 1 hour, 2 hours). 3 attempts by default, up to 5.
  • Error Classification: Separates temporary errors that are retried (timeouts including 408, refused connections, 429, 5xx) from errors that need a fix first (SSL, redirects, 400, 401, 403, 404 and other 4xx).
  • Order State Mismatch Protection: Detects if an order status changed (e.g. cancelled or refunded by customer service) while a delivery was pending. Automatic, quick and bulk retries do not send it; you decide in the delivery inspector.
  • Idempotency Key (X-Idempotency-Key): Retries of a delivery carry the same key, so an endpoint that checks it can ignore duplicates. Separate WooCommerce deliveries get separate keys.
  • Delivery Log: A dedicated, indexed database table with status and webhook filters, search (order or log number, webhook, URL, error) and bulk retry. Unresolved failures are kept for at least 90 days.
  • Health Monitor & Reactivation: Send a test ping to an endpoint and re-enable a webhook that WooCommerce disabled in one click.
  • Payload Inspector: Examine request headers, payloads, responses and status codes in the admin.
  • E-mail Alerts: Notices about failed deliveries and disabled webhooks, with a cooldown, plus a recovery summary.
  • HPOS Compatibility: Works with High-Performance Order Storage (custom_order_tables) and the legacy order storage.

Upgrade to Pro

For high-volume stores, multi-store brands, and mission-critical ERP integrations, Webhook Recovery Pro is a separate plugin that adds:

  • Circuit Breaker: Detects remote system downtime and pauses automatic retries, with randomized jitter, to prevent server worker exhaustion.
  • Changed Item Protection: Extends the order status check to products, customers and coupons that were modified or deleted since the failure, and can rebuild their payloads.
  • Payload Encryption at Rest: Stored request payloads and response bodies are encrypted with AES-256-GCM, using a key derived from the WordPress security salts. Headers, error messages and delivery URLs are not encrypted. Changing the salts makes earlier payloads unreadable.
  • Chat and Webhook Alerts: Slack, Discord, Telegram and custom webhook notifications in addition to e-mail.
  • Saved Revenue Metric: Recovered order revenue over a rolling 30-day window.
  • CSV & JSON Exporters: Export the filtered delivery log. Payloads and headers are left out unless explicitly requested.
  • Safe Replay: Resend a backlog of failures at a limited speed, after a check that sends nothing. It never sends events whose order, product, customer or coupon changed since, or that a newer delivery of the same item already replaced, and it pauses after repeated failures or while the circuit breaker is open.
  • Configuration Profiles: Export the retry, alert and retention rules of one store and apply them to others, with a preview of every change, confirmation for risky ones and rollback. Credentials are never part of a profile.
  • Failure Triage Bundle: A summary of failures grouped by webhook, topic, HTTP status and time, and a bundle without payloads and credentials. You pull it from each store (WP-CLI or REST); nothing is sent anywhere automatically.
  • WP-CLI Commands and REST API: For scripted and remote recovery, settings, profiles, replay and triage.

External services

This plugin does not send any data to the plugin author or to any analytics or tracking service. The only outgoing HTTP requests it makes go to the webhook delivery URLs that you configure yourself in WooCommerce > Settings > Advanced > Webhooks:

  • Retrying a failed delivery (automatically through Action Scheduler, or when you click Retry): the original webhook payload (the order, product or customer data that the WooCommerce webhook is configured to send), the WooCommerce webhook headers and an X-Idempotency-Key header are sent again to that webhook’s delivery URL.
  • Ping test (Webhook health tab and Settings > diagnostic test): a small test payload containing only your site URL and a timestamp (no customer data) is sent to the selected webhook’s delivery URL.

These requests only happen for webhooks you created, and the receiving service (for example your ERP, CRM or automation platform) is chosen and operated by you, so its own terms of service and privacy policy apply.

Installation

  1. Upload the webhook-recovery-for-woocommerce folder to your /wp-content/plugins/ directory, or install directly through the WordPress Plugins dashboard.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. Ensure WooCommerce is active.
  4. Navigate to WooCommerce > Webhook Recovery to access your dashboard, monitor delivery health, and configure recovery options.

FAQ

Does this slow down customer checkout speed?

The plugin looks at a delivery after WooCommerce has sent it, which by default happens in the background, and schedules retries through Action Scheduler. Retries you start by hand run while you wait.

How does this help with webhooks that WooCommerce disables?

WooCommerce disables a webhook after 5 consecutive failures. A successful retry resets that failure counter, and the Webhook health tab lets you reactivate a disabled webhook (which also resets it). If the endpoint keeps failing, WooCommerce disables the webhook again.

What can the plugin not recover, and what is the receiving service responsible for?

  • While a webhook is disabled or paused, WooCommerce does not send its events at all, so there is nothing to record or retry.
  • Any 2xx response counts as a successful delivery, even if the receiving system fails to process the data afterwards.
  • The receiving system is responsible for ignoring duplicates (using the idempotency key) and for handling events that arrive out of order.
  • The plugin only handles WooCommerce webhook delivery data. It does not measure uptime or monitor servers.
  • Before an automatic, quick or bulk retry, order deliveries are checked for a changed order status only. Other changes to the order are not detected.
  • Stored product, customer and coupon data is sent as it was at the time of the failure.

Does a successful ping mean my integration works?

No. A ping only shows that the endpoint accepted a small test request. It does not prove that real events are processed.

Which personal data is stored?

The delivery log stores webhook headers, payloads and responses in your database, and these can contain customer data. Resolved records are removed after the retention period you set. The WordPress personal data export and erase tools cover the matching order and customer records.

Is it compatible with High-Performance Order Storage (HPOS)?

Yes. The plugin declares compatibility with WooCommerce HPOS (custom_order_tables) and reads orders through WooCommerce, so both storage modes work.

What background scheduler is used for retries?

The Action Scheduler library included with WooCommerce. For high-volume stores, a server-level cron job (with DISABLE_WP_CRON) helps the queue run promptly during low-traffic periods.

Does the plugin create custom database tables?

Yes, one indexed table per site: {prefix}hookretry_logs.

What happens to data if I uninstall the plugin?

Deactivating keeps your log history. Deleting the plugin removes its table and settings, unless you choose to preserve data under Settings.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Webhook Recovery for WooCommerce” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.0.4 (2026-11-30)

Behaviour changes:

  • Unresolved failures are now kept for at least 90 days; the retention setting applies to resolved records. Filter: hookretry_unresolved_retention_days (0 keeps them forever).
  • Bulk retries and the quick retry button do not send a delivery whose order status changed. Review it in the delivery inspector.

Improvements:

  • All internal names use the hookretry_ prefix.
  • Error messages and bulk summaries stay on screen until closed.

Fixes:

  • Activation no longer calls Action Scheduler functions, which could be missing in older WooCommerce versions.
  • The log table is created on every site of a multisite network.
  • Records no longer stay in the “retrying” state when nothing could be sent.
  • Only one automatic retry is pending per record.
  • Deliveries of paused webhooks are not sent; order.deleted deliveries can be retried.
  • “Regenerate” never falls back to the old payload, and unreadable payloads are never sent.
  • Personal data export and erasure cover the matching order and customer records only, including response headers.
  • Diagnosis hints and alert e-mails mention automatic retries only when one will happen.
  • Searching the log by order number, log number or HTTP status works, including the links in alert e-mails.
  • Request timeouts (HTTP 408) are retried.
  • Large bulk retries stop before the PHP time limit; the fifth retry waits 2 hours as announced.
  • The log table fits the screen, the retry button no longer shifts it, and the delivery inspector no longer shows HTML entities.
  • Plugin styles are limited to the plugin’s own screen.

1.0.3 (2026-11-24)

  • Compatibility: tested with WordPress 7.1 and WooCommerce 11.3.
  • Fix: the daily log cleanup is scheduled only after Action Scheduler has initialized, so no incorrect-usage notices are recorded on page loads.
  • Fix: fatal error on the dashboard and log screens caused by a call to an undefined method; the leftover payload code has been removed.
  • Fix: PHP 8.1+ deprecation notices in the delivery inspector when a record has no headers or payload.
  • Fix: the recovery e-mail now shows the resolution time and no longer raises an undefined array key warning.
  • Fix: alert cooldown transients use the full plugin prefix.

1.0.2 (2026-11-15)

  • Lite: honest revenue card instead of a blurred placeholder figure.

1.0.1 (2026-11-15)

  • Maintenance release.

1.0.0 (2026-11-11)

  • Initial production release.
  • Silent webhook failure interception and background retry engine.
  • Action Scheduler integration with intelligent exponential backoff.
  • Smart error classification distinguishing transient (5xx) vs permanent (4xx) failures.
  • Order state mismatch protection preventing stale status syncs.
  • Webhook health monitor with 1-click diagnostic ping and reactivation.
  • Dedicated indexed log database with HPOS and legacy order compatibility.