Speeding Up Bulk Post Creation – wp_insert_post & update_post_meta

Siteground has WP-CLI installed and when you have WooCommerce installed it adds its own set of WP-CLI commands.
See this:
https://github.com/woocommerce/woocommerce/wiki/WC-CLI-Overview

With this your solution would be cleaner as it would go though WC’s API.

Maybe you can also check for ideas how WC does it. I remember in the add/edit product UI there was a link to (re)generate variations but there was limit I think.

Leave a Comment