Load only wordpress core during woocommerce product import
-
I am importing products from shopmaster.com into my site.
it takes roughly 10 seconds to upload a product to woocommerce . Each product has multiple images and product attributes.
10 seconds seems too much, i read about optimizing the writing speed for woocommerce and it seems the only way was to disable full wordpress loading during product import ( when shopmaster calls woocommerce api to write products into my store )
I know that i can load minimal wordpress without themes and plugins by including the following snippet into my code
//Tell WordPress to only load the basics define('SHORTINIT',1); //get path of wp-load.php and load it require_once $_SERVER['DOCUMENT_ROOT'] . '/wp-load.php';
Am wondering where i should place the code since shopmaster.com calls woocommerce directly.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Load only wordpress core during woocommerce product import’ is closed to new replies.