Skip to content

Instantly share code, notes, and snippets.

@Tusko
Created December 1, 2019 19:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Tusko/ed5fb156c5b8e1ba85f185b6fad31832 to your computer and use it in GitHub Desktop.
Save Tusko/ed5fb156c5b8e1ba85f185b6fad31832 to your computer and use it in GitHub Desktop.
Bulk move posts to Woocommerce
//backup your dabatase at first
UPDATE `wp_posts` SET `post_type` = 'product' WHERE post_type = 'post';
UPDATE `wp_term_taxonomy` SET `taxonomy` = 'product_cat' WHERE `taxonomy` = 'category'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment