Website Building » WooCommerce » What Table Are WooCommerce Products Stored In?

What Table Are WooCommerce Products Stored In?

Last updated on October 1, 2022 @ 11:01 pm

All WooCommerce products are stored in the wp_posts table in the WordPress database. This table is also used to store other information such as pages, posts, and custom post types. Each product has a post_type of product and a post_status of publish.

In addition to the wp_posts table, WooCommerce products are also stored in the wp_postmeta table.

This table is used to store additional information about posts and products such as custom fields, product attributes, and product pricing.

Finally, WooCommerce products are also stored in the wp_woocommerce_order_items and wp_woocommerce_order_itemmeta tables. These tables are used to store information about orders and line items. Order items are stored in the wp_woocommerce_order_items table while order item meta is stored in the wp_woocommerce_order_itemmeta table.

Conclusion

WooCommerce products are stored in three different tables in the WordPress database: wp_posts, wp_postmeta, and wp_woocommerce_order_items. Each table is used to store different information about products, such as their attributes, pricing, and orders.

PRO TIP: When working with WooCommerce products, it is important to be aware of which table they are stored in. Products can be stored in either the ‘products’ or ‘product_meta’ tables.

If you are unsure which table a product is stored in, you can check the ‘type’ column in the ‘posts’ table. Products will have a ‘product’ post type.

Kathy McFarland

Kathy McFarland

Devops woman in trade, tech explorer and problem navigator.