Skip to content

Instantly share code, notes, and snippets.

View Christianzimpel's full-sized avatar

Christianzimpel

View GitHub Profile
@Christianzimpel
Christianzimpel / migrateorders.php
Created December 8, 2020 16:00 — forked from cfaria/migrateorders.php
Migrate WooCommerce Orders
<?php
//increase max execution time of this script to 150 min:
ini_set('max_execution_time', 9000);
//increase Allowed Memory Size of this script:
ini_set('memory_limit','960M');
// Copies woocommerce orders and users over from source to target.
// I use this on my local machine - loading both db's up there side by side
// could easily adjust the connect strings to connect elsewhere if needed.