Skip to content

Pre-flight audit for a WooCommerce migration

WooCommerce migrations carry inflight orders, payment webhooks, and tax engines. Here is the audit that has to clear before cutover is scheduled.

A WooCommerce migration is not a WordPress migration with a different theme. It is a stateful financial application with inflight transactions, third-party webhook endpoints, scheduled action queues, and tax integrations that hold their own caches. A cutover that treats it like a content site books duplicate orders, drops Stripe events, and serves stale tax rates at checkout. The audit happens before the cutover date is even on the calendar.

What’s happening

A WooCommerce store has state in places that a static wp-content copy does not capture. Action Scheduler holds tens of thousands of pending and recurring actions in wp_actionscheduler_actions — emails to send, subscriptions to renew, abandoned-cart sequences. Payment gateways register webhook URLs at the provider end (Stripe, Square, PayPal) that point at the source server’s domain; until those are updated, post-cutover the source keeps receiving and acknowledging events the destination never sees. Tax services (Avalara, TaxJar) cache rate tables on the source. Shipping plugins talk to courier APIs with credentials scoped to the origin IP. And the wp_options table holds dozens of _transient_ rows the destination should regenerate, not import.

How to verify

Audit the store from wp-cli and the database:

wp wc shop_order list --limit=10 --status=processing --format=table
wp action-scheduler queue --status=pending,in-progress
wp option get woocommerce_stripe_settings --format=json | jq .webhook_secret
wp db query "SELECT COUNT(*) FROM wp_actionscheduler_actions WHERE status IN ('pending','in-progress');"
wp db query "SELECT option_name FROM wp_options WHERE option_name LIKE '_transient_woocommerce%' LIMIT 20;"
wp wc tax list --limit=20

List every external service the store depends on: gateways, tax engines, shipping, ERP/inventory sync, accounting exports, email marketing. For each, identify where the webhook URL or callback endpoint is configured at the vendor end. Note inflight order counts at the time of audit so you can match them against post-cutover counts.

The fix

Schedule the cutover in a low-order window — usually the four hours after midnight in the store’s primary timezone. Put WooCommerce into maintenance mode at the source the moment the export starts; orders placed after that point will be lost. Re-register every webhook URL at every gateway and external service against the destination domain before flipping DNS. Pre-stage the destination with the same plugin set and run the action scheduler manually (wp action-scheduler run) to drain any backlog before traffic arrives. After cutover, reconcile inflight orders: query order IDs that existed at the source at export time, confirm each is present on the destination with matching status, and spot-check three or four against the gateway dashboard.

We run this audit as the gate for any e-commerce cutover in Migration — book a WooCommerce migration review.

Stack Harbor operates production WordPress at scale — see enterprise WordPress support for the managed model, or book a WordPress consult for a written read of your current shape.