Website Building » WooCommerce » How Do I Create a Custom Post Type in WooCommerce?

How Do I Create a Custom Post Type in WooCommerce?

Last updated on October 1, 2022 @ 5:06 pm

Adding a custom post type to WooCommerce is a great way to extend the functionality of your online store. By default, WooCommerce comes with two post types: Products and Orders. However, you can easily add your own custom post type to extend WooCommerce even further.

There are two ways to add a custom post type to WooCommerce: using a plugin or by editing your theme’s functions.php file. We’ll cover both methods below.

Method 1: Adding a Custom Post Type Using a Plugin

There are many plugins available that will allow you to add a custom post type to WooCommerce. For our purposes, we’ll be using the WooCommerce Extra Product Options plugin. This plugin is free and available from the WordPress plugin repository.

Once you’ve installed and activated the plugin, you’ll need to configure it. To do this, go to WooCommerce > Settings > Extra Product Options.

On this page, you’ll see a number of options that you can use to configure the plugin. For our purposes, we only need to worry about the Product Options section.

In the Product Options section, you’ll see a number of options that you can use to configure your custom post type. For our purposes, we only need to worry about the Name, Singular Name, and Plural Name options. These options will determine what your custom post type will be called in the WordPress admin area.

Name:

Singular Name:

Plural Name:

After you’ve filled in these options, click on the “Save Changes” button at the bottom of the page. Your custom post type will now be registered with WooCommerce.

PRO TIP: Please note that creating a custom post type in WooCommerce is not a trivial task and should only be attempted by developers with experience in doing so. If you are not a developer, we recommend hiring one to assist you.
Madison Geldart

Madison Geldart

Cloud infrastructure engineer and tech mess solver.