How it works...

WooCommerce uses custom post types to manage most of its core features. The main features, such as products, orders, and coupons, are built using custom post types. So, we can see a new section on the main menu called Products. Similar to posts, we used the Add New menu item to create a product. The first part of product creation is similar to normal post creation. We have titles, content, categories, and tags similar to a normal post. The product details are stored in the wp_posts table, while the category and tags are stored in the default built-in tables.

Then, we moved on to the WooCommerce product-specific Product Data section. First, we used product type as a Simple Product. This is the default product type among four ...

Get WordPress 5 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.