In short
WooCommerce stores customer data mainly in the WordPress database. Registered accounts use wp_users and wp_usermeta; orders use four HPOS tables or legacy wp_posts and wp_postmeta; addresses, line items, sessions, analytics records and payment tokens sit in additional WooCommerce tables. The actual prefix may not be wp_. (woocommerce.com)
Key takeaways
- Registered customer accounts and transaction records are separate, so guest orders can exist without a row in
wp_users. (woocommerce.com) - HPOS stores core order data in four dedicated tables and has been enabled by default on new WooCommerce installations since version 8.2. (woocommerce.com)
wp_wc_customer_lookupsupports WooCommerce reporting; it is not the only or primary location for all customer information. (raw.githubusercontent.com)- Official WooCommerce gateway designs use tokens rather than storing full card numbers or security codes in the WordPress database. (woocommerce.com)
- A useful WooCommerce backup needs the database and site files, stored separately from the live server and tested through a restore. (woocommerce.com)
Contents
- Where does WooCommerce store customer data at a glance?
- Which tables hold registered customer accounts?
- Where are orders and customer addresses stored with HPOS?
- What changes if the store still uses legacy order storage?
- Where are carts, sessions, analytics and saved payment methods stored?
- Where can you view one customer in WordPress?
- How should you access or query customer data safely?
- How should you back up, retain and delete customer data?
- What else do store owners ask about WooCommerce customer data?
- What should you do next?
The examples below use the common wp_ prefix, but WordPress allows another database prefix. Check the live database or configuration rather than assuming every table begins with wp_. The official WooCommerce table reference and WordPress database API reference both make this distinction. (woocommerce.com)
Where does WooCommerce store customer data at a glance?

WooCommerce spreads customer information across account, order, session, reporting and payment-related tables. The exact order tables depend on whether HPOS or legacy WordPress posts storage is authoritative.
| Record type | Usual table or tables | What the record contains |
|---|---|---|
| Registered account | wp_users, wp_usermeta | Login identity, password hash, email, role, profile data and saved billing or shipping fields |
| HPOS order | wp_wc_orders, wp_wc_order_addresses, wp_wc_order_operational_data, wp_wc_orders_meta | Order identity, totals, customer link, checkout email, addresses, operational fields and custom metadata |
| Legacy order | wp_posts, wp_postmeta | The order record and most order properties stored as metadata |
| Order items | wp_woocommerce_order_items, wp_woocommerce_order_itemmeta | Products, fees, shipping, coupons, taxes, quantities and line-level metadata |
| Order notes | wp_comments, wp_commentmeta | System, private and customer-visible notes linked to an order |
| Cart and session | wp_woocommerce_sessions, sometimes wp_usermeta | Current cart contents, customer session values, expiry and persistent carts |
| Analytics | wp_wc_customer_lookup and wp_wc_order_*_lookup tables | Reporting-friendly customer, order, product, coupon and tax records |
| Saved payment method | wp_woocommerce_payment_tokens, wp_woocommerce_payment_tokenmeta | Processor tokens and limited identifying metadata |
| Downloads | wp_woocommerce_downloadable_product_permissions, wp_wc_download_log | Purchased-file permissions and download activity |
This database normally sits in the website's hosting environment. Suitable WooCommerce hosting therefore needs to protect the database as well as the visible shop, plugin files and uploaded media.
A customer is a collection of linked records, not one row in one WooCommerce table.
Performance you can feel, backed by clients who depend on it. Read how our support and uptime create long‑term customer success.Power Your Business with Better Hosting
Which tables hold registered customer accounts?
Registered customer accounts use WordPress core tables, not a dedicated master WooCommerce customer table. wp_users stores the account identity, while wp_usermeta stores additional account and WooCommerce profile fields.
Typical WooCommerce user metadata includes billing and shipping names, companies, addresses, postcodes, countries, email addresses and phone numbers. WordPress also uses user metadata for roles and other profile settings. The WordPress database reference identifies users as the user table and usermeta as the table for additional user information. (developer.wordpress.org)
Guest checkout works differently. A guest order is not tied to a registered WordPress account, but its billing email, name, phone number and address can still appear in the order tables. WooCommerce's Accounts & Privacy documentation confirms that guest orders are not tied to a WordPress user account. (woocommerce.com)
wp_wc_customer_lookup is a reporting table used by WooCommerce Analytics. Current WooCommerce core schema includes fields such as user ID, username, name, email, location, registration and activity dates, billing phone and shipping phone. Treat it as an analytics index rather than the sole customer record. (raw.githubusercontent.com)
A customer's saved account address and an older order's address may differ because each order preserves the details supplied for that transaction.
wp_users and wp_usermeta hold the account, while orders keep their own customer and address snapshots.
Where are orders and customer addresses stored with HPOS?

With High-Performance Order Storage enabled, four dedicated WooCommerce tables hold the core order record, addresses, operational data and extra metadata. Order line items and order notes remain in their existing tables outside those four HPOS tables.
The four HPOS tables are:
wp_wc_ordersstores core order fields such as status, currency, totals, customer ID, billing email, payment method, transaction ID, dates, IP address, user agent and the note entered by the customer during checkout.wp_wc_order_addressesstores billing and shipping address rows, including names, company, street fields, city, state, postcode, country, email and phone where applicable.wp_wc_order_operational_datastores internal operational fields and flags used to manage the order lifecycle.wp_wc_orders_metastores custom or extension-provided order metadata that does not have a dedicated core column.
WooCommerce's current HPOS documentation lists these four tables. The official HPOS schema guide provides the field-level design and confirms that order items continue using their separate tables. (woocommerce.com)
Two related storage areas still matter:
wp_woocommerce_order_itemsandwp_woocommerce_order_itemmetastore products, fees, shipping, tax and coupon line items.wp_commentsandwp_commentmetacontinue to store order notes, including private notes, system events and notes sent to customers.
Compatibility mode can synchronise order information between HPOS and the legacy posts tables. The presence of rows in both places does not mean both are authoritative, so check the WooCommerce setting before investigating or migrating data. (woocommerce.com)
HPOS changes the core order location, but it does not move every order-related record into the same four tables.
Host your website with our 5-star rated, cPanel website hosting plans.
Super fast servers, with security included and hosted in your choice of Australian Data Center.
View cPanel Plans
What changes if the store still uses legacy order storage?
Legacy WooCommerce order storage uses wp_posts for the order record and wp_postmeta for most order properties. Billing and shipping fields appear as metadata keys such as _billing_email, _billing_phone, _shipping_postcode and similar fields.
| Data | HPOS | Legacy storage |
|---|---|---|
| Core order | wp_wc_orders | wp_posts |
| Billing and shipping addresses | wp_wc_order_addresses | wp_postmeta |
| Extra order metadata | wp_wc_orders_meta | wp_postmeta |
| Order items | WooCommerce order-item tables | WooCommerce order-item tables |
| Order notes | WordPress comments tables | WordPress comments tables |
HPOS became the default for new installations in WooCommerce 8.2, but existing stores may still use legacy storage. Check WooCommerce > Settings > Advanced > Features > Order data storage to see which system is selected and whether compatibility mode is active. (woocommerce.com)
Do not decide a store's storage mode merely by seeing that HPOS tables exist, because synchronisation may have populated them while legacy tables remain authoritative.
Check the order-data setting before reading, moving or changing any WooCommerce order records.
Where are carts, sessions, analytics and saved payment methods stored?
Customer data extends beyond accounts and completed orders. Active carts, analytics indexes, saved payment tokens and download permissions each use separate storage with a different purpose and retention lifecycle.
Where is a live customer's cart stored?
WooCommerce stores session data in wp_woocommerce_sessions, with a session key, session value and expiry. The session value can include cart contents and other checkout state. Logged-in customers may also have a persistent-cart entry in wp_usermeta. The current WooCommerce core schema defines the session table and its expiry index. (raw.githubusercontent.com)
A session is temporary working data, not a completed order. Clearing sessions can remove active carts, so it should not be treated as a harmless database clean-up.
Where does WooCommerce Analytics get customer information?
The wp_wc_customer_lookup table supports customer reports, while tables such as wp_wc_order_stats, wp_wc_order_product_lookup, wp_wc_order_coupon_lookup and wp_wc_order_tax_lookup support sales reporting. These are optimised lookup records, not replacements for account and order data. (woocommerce.com)
Analytics data can become incomplete after some migrations or imports until historical data is imported again. This is why a customer can exist in an order while appearing to be missing or incomplete in a report.
Where are saved payment methods stored?
WooCommerce core provides wp_woocommerce_payment_tokens and wp_woocommerce_payment_tokenmeta for saved-method references. Official gateway designs use tokenisation so full card numbers and security codes remain with the payment processor rather than in the WordPress database. (woocommerce.com)
The site may still hold a token, card brand, expiry and last four digits. The exact data depends on the gateway, so review the active extension and the guide to WooCommerce payment data before making a compliance claim.
What else can contain customer information?
Download permissions and logs can contain email addresses, user IDs, order IDs and file-access activity. Extensions may also add custom tables, custom post types or order metadata, while payment, email, accounting and customer-management services may hold copies outside WordPress. WooCommerce explicitly warns that extensions can create additional storage structures. (woocommerce.com)
Secondary tables and external services still count when mapping, exporting or erasing customer information.
Where can you view one customer in WordPress?
Open WooCommerce > Customers to search, filter or select an individual customer. For a registered customer, selecting the person's name opens the associated WordPress user profile.
The current WooCommerce Customers report documentation says the report includes registered customers and guests. It can show name, activity, registration date, email, orders, total spend, average order value, location, role and optional phone columns. (woocommerce.com)
Use WooCommerce > Orders when the question concerns a particular transaction. An order shows the billing and shipping details captured at checkout, which can differ from the customer's current account profile.
For a formal personal-data request, WordPress provides Tools > Export Personal Data and Tools > Erase Personal Data. WooCommerce adds customer addresses, associated orders, download permissions and other supported records to those workflows. (woocommerce.com)
Use the Customers report for the person, the Orders screen for a transaction and WordPress privacy tools for a verified data request.
Register your new domain name at competitive market prices including free domain add-ons like privacy, DNS Hosting, Custom Nameservers and Forwarding.
Always the best price and no nasty renewal price hikes.
Register A Domain Name
How should you access or query customer data safely?

Start by identifying the authoritative order-storage system and the purpose of the request. Use WooCommerce's data APIs where possible because they can work across HPOS and legacy storage without hard-coding one table layout.
- Confirm the storage mode. Check the order-data setting, compatibility mode and WooCommerce database version before writing a query.
- Create a current backup and staging copy. Do not test a bulk update, import, deletion or migration against the only live copy of the store.
- Use WooCommerce objects first. Functions such as
wc_get_order()andwc_get_orders()use WooCommerce's data-store layer. The HPOS order-query documentation explains the supported query model. (developer.woocommerce.com) - Keep direct SQL read-only where practical. If SQL is necessary, use the actual prefix, prepared queries, least-privilege credentials and a documented reason for each field collected. WordPress provides
$wpdb->prepare()to escape untrusted values used in SQL. (developer.wordpress.org) - Audit extensions and external systems. Search active extension documentation, custom tables, webhooks, exports and connected services before declaring the data map complete.
- Validate the result. Compare a small sample against the WordPress dashboard and test guest, registered, refunded and anonymised orders.
Direct database updates can bypass validation, hooks, caches and synchronisation. A suitable database hosting environment helps with availability and access control, but it does not make an unsafe query safe.
Use WooCommerce's data layer for application work and reserve direct SQL for controlled, backed-up investigation.
How should you back up, retain and delete customer data?

Back up the full database and the site's files, then test that the backup can be restored. Retention and erasure should be controlled through documented policy and WooCommerce's privacy settings rather than ad hoc table deletion.
A database export captures orders, accounts, settings and WooCommerce tables, but it does not include themes, plugins or uploaded files. WooCommerce's database import and export guide recommends keeping the export off the live server and testing it by restoring into a separate staging database. (woocommerce.com)
For an active store, choose a backup frequency based on the number of orders the business can afford to lose, not a generic weekly schedule. Use off-site backups and document the latest successful restore test. Security controls, restricted administration access and maintained software are also part of secure WordPress hosting.
WooCommerce provides retention controls under WooCommerce > Settings > Accounts & Privacy. Depending on the chosen periods, WooCommerce can delete inactive customer accounts, move abandoned order states to the bin and anonymise personal information in completed or refunded orders while retaining sales statistics. Leaving a period blank retains that category indefinitely. (woocommerce.com)
For Australian organisations covered by the Privacy Act 1988, the OAIC's 2025 APP 11 guidance says reasonable steps are required to protect personal information and to destroy or de-identify it when it is no longer needed, unless another law or order requires retention. Legal and accounting requirements should be checked before automatic periods are set. (oaic.gov.au)
A backup is useful only if it can be restored, and a retention setting is safe only if it matches the organisation's obligations.
Experience Microsoft 365 Business Standard for free for 30 days.
Up to 25 users with full access to email, OneDrive and Teams. Includes full versions of desktop apps of Outlook, Word, Excel, PowerPoint and more.
Try Microsoft 365
What else do store owners ask about WooCommerce customer data?
These questions cover the most common practical tasks after the storage map is understood. The correct tool depends on whether the goal is viewing, migration, privacy access or deletion.
Where in the WordPress dashboard can you view individual customer information in WooCommerce?
Open WooCommerce > Customers. Use All Customers, Single Customer or filters, then select a registered customer's name to open the WordPress user profile. For order-specific billing, shipping and notes, open WooCommerce > Orders and select the relevant order, because an order keeps its own checkout snapshot.
How can I export and import users and customers in WordPress?
For a customer report, use WooCommerce > Customers > Download to export the current view as CSV. For an individual privacy request, use Tools > Export Personal Data. Bulk importing users requires a tested customer importer or WP-CLI; run a dry test on staging and match by email carefully before a live import. (woocommerce.com)
Does WooCommerce store customer data in one table?
No. Registered account details, order snapshots, line items, sessions, reporting records, download permissions and payment tokens use different tables. A guest can have order and analytics records without a WordPress account, while a registered customer can have account data before placing any order.
Does WooCommerce store credit card numbers?
Core WooCommerce and official gateway designs do not store full card numbers or security codes in the WordPress database. If saved payment methods are enabled, the site may store a processor token plus limited identifying details such as card brand, expiry and last four digits. Check the active gateway's documentation. (woocommerce.com)
Can I delete old WooCommerce customer data?
Yes, but use WooCommerce's Accounts & Privacy retention and erasure tools rather than deleting table rows. Completed or refunded orders may be anonymised, while other records may need to be retained for legal or operational reasons. Review Australian privacy and record-keeping obligations before setting automatic periods.
The safest answer depends on the task: reporting, migration, privacy access and erasure each require a different WooCommerce tool.
What should you do next?
Record the store's HPOS mode, active extensions, external services, backup location, retention periods and latest restore test before changing customer records. If no one owns that checklist, ask Up Time Web Hosting about Managed WordPress Maintenance before running a live database edit, migration or privacy clean-up.
Map the data first, then change it.






