Created
December 1, 2019 19:00
-
-
Save Tusko/ed5fb156c5b8e1ba85f185b6fad31832 to your computer and use it in GitHub Desktop.
Bulk move posts to Woocommerce
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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