product post type is reserved (5 posts)

  1. mj_azani
    Posted 3 years ago #


    i am theme author. one of my themes has already product post type in use.

    as i figured out woocommerce is using this post type as well. so is there any way that i can force woocommerce to use another posty type?

    looking forward for any possible solution

    thanks in advance


  2. Roy Ho
    Posted 3 years ago #

    Perhaps it would be easier to change your theme's post type instead?

  3. mj_azani
    Posted 3 years ago #

    yes, i know, but lots of my customers bought the theme and filled the contents in products sections. so changing the post type is not possible. any idea ?

  4. Roy Ho
    Posted 3 years ago #

    I don't think there is any other way. The "Product" post type is referenced all over WooCommerce plugin and its not like you can change the core.

    To be honest, post type should ALWAYS have a namespace attached to prevent these things from happening. This includes WooCommerce. They should have named it woo_products or woo-products or something with a namespace. This includes you as well, you should have added a namespace as well from the beginning.

  5. mj_azani
    Posted 3 years ago #

    yes you are right. maybe i am less experienced in this topic, but i expected woocommerce authors to use something more special as post type (like namespace you mentioned about). it prevents any conflict with the post type names that other developers are using.

    it will be awesome if woocommerce authors add a feature that let developers to use another post type name for products.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic