Skip to content

WordPress WooCommerce HPOS migration — operational checklist

A WordPress operator checklist for WooCommerce High-Performance Order Storage: plugin compatibility audit, sync mode soak, the WP-CLI commands, and the cutover dry run.

The existing HPOS strategy article walks through the four phases. This one is the pre-cutover operational checklist — the list a senior WordPress operator pins on the wall before flipping the authoritative switch on a live WooCommerce store. If any line item is not signed off, the cutover is postponed. The deepest scar tissue in WooCommerce HPOS migrations is not the migration command — it is the plugin nobody audited, the cron that does not run, and the backup nobody validated by restoring.

What’s happening

HPOS migrates WooCommerce order data from wp_posts and wp_postmeta into wc_orders, wc_order_addresses, wc_order_operational_data, wc_order_stats, and wc_orders_meta. The compatibility surface area is every plugin that ever read or wrote order data with get_post_meta, update_post_meta, WP_Query with post_type=shop_order, or a direct $wpdb query against wp_postmeta. WooCommerce ships its core code as HPOS-aware, but the WordPress plugin ecosystem is wide. A WooCommerce store on its tenth year typically has 40 to 80 active plugins, and any one of them can ship a silent write to the wrong table.

How to verify

The checklist is twelve items. Each one is a WP-CLI command or a manual confirmation.

# 1. WooCommerce version supports HPOS authoritative (8.2+)
wp plugin get woocommerce --field=version

# 2. WordPress version 6.4+
wp core version

# 3. DB engine and row format
wp db query "SELECT @@version, @@innodb_default_row_format"

# 4. Backup exists AND restored to a sandbox at least once
ls -lh /backup/$(date +%Y-%m-%d)/*.sql.gz

# 5. Active plugins inventory
wp plugin list --status=active --format=csv > active-plugins.csv

# 6. HPOS compatibility — query WooCommerce's runtime check
wp shell <<<'\Automattic\WooCommerce\Utilities\FeaturesUtil::get_compatible_plugins_for_feature("custom_order_tables");'

# 7. Order count by status
wp wc shop_order list --format=count

# 8. Orphan postmeta count (rows pointing to deleted orders)
wp db query "SELECT COUNT(*) FROM wp_postmeta pm
  LEFT JOIN wp_posts p ON pm.post_id=p.ID
  WHERE p.ID IS NULL AND pm.meta_key LIKE '\\_%'"

# 9. Action Scheduler is healthy (no failed queue)
wp action-scheduler queue

# 10. WP-Cron is being driven by system cron, not page loads
grep -i DISABLE_WP_CRON wp-config.php

# 11. Custom meta_keys that suggest plugin involvement
wp db query "SELECT meta_key, COUNT(*) FROM wp_postmeta pm
  JOIN wp_posts p ON pm.post_id=p.ID
  WHERE p.post_type='shop_order'
  GROUP BY meta_key ORDER BY COUNT(*) DESC LIMIT 50"

# 12. Tail the WooCommerce log during sync — anything tagged hpos
tail -f wp-content/uploads/wc-logs/woocommerce-*.log | grep -i hpos

The two checks people skip are item 4 (restoring the backup, not just taking it) and item 6 (plugin compatibility). Half the postmortems we read on bad HPOS migrations name a plugin that declared compatibility but kept calling get_post_meta for order data.

The fix

  1. Run the checklist on a clone, not on production. Use the existing wp db export output to seed the clone, run the full checklist there, and only then schedule the production window.
  2. Stop here if any plugin from item 6 returns nothing. A plugin that does not declare HPOS compatibility is incompatible until the vendor ships the declaration. Open the vendor ticket, do not enable sync.
  3. Soak in sync mode for 14 days minimum, longer if you have monthly batch processes. WooCommerce verify command (wp wc hpos-cli verify_cot_data) runs weekly during this window. Drift between the two tables means a plugin is misbehaving — find it before the cutover.
  4. Pick the cutover window with care. Not a Friday. Not the day before a marketing campaign. Pick a Tuesday or Wednesday morning when the dev team is at desks.
  5. Have the rollback documented and rehearsed. The dashboard toggle is not bidirectional after Phase 4 — the rollback is a manual replay job. Write it down before you need it.

For the broader migration framework, see the HPOS strategy article, and pair this checklist with the enterprise WordPress operations operational playbook.


Stack Harbor runs WooCommerce HPOS cutovers as part of the enterprise WordPress operations practice — the plugin audit, the soak verification, and the cutover-window staffing. If your store is past the size where flipping the toggle on a hunch feels safe, let’s scope the cutover together.