• Resolved vshall21

    (@vshall21)


    I have one post_type already created which has name product, i have like alredy 2000 post there.

    Now if i install woocommerce the exisitng post_type does not appear because woocommerce uses the same.

    Is it possible to change woocommerce post_type from product to something else??

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Gerhard Potgieter

    (@kloon)

    You will have to unhook https://github.com/woocommerce/woocommerce/blob/master/includes/class-wc-post-types.php#L28 and then create a custom function based on register_post_types in that class with your new post_type.

    That being said I am sure a lot of stuff will break within extensions as most extensions will do queries based on the product post type from what I have seen.

    It is worth giving a try though and see if it will work, otherwise it might be better to update the current product posts to have a different post type in wp_posts if you are not using them.

    Plugin Contributor Mike Jolley

    (@mikejolley)

    I would not recommend changing the WC post type because there may be extensions and so on relying on the type.

    You could change the existing post types in the DB via a query. That may be the path of least resistance.

    Thread Starter vshall21

    (@vshall21)

    Yes thanks for suggestions…I have to change existing post type with something else.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change post type product to something else’ is closed to new replies.