Cron Job Imports: http://www.wpallimport.com/documentation/recurring/cron/.
If you want to run imports or exports sequentially, you can use this workaround:
- Set up the "trigger" cron job and "processing" cron job for the import/export that should run first.
- Set up "processing" cron jobs for all of the imports/exports that are going to run.
- Modify the following code by adding your own URL and import/export IDs then save the code inside the Function Editor:
function my_run_cron_after_import( $import_id ) {
// This is how the imports are chained together...
// For example, after import ID '1', import ID '2' will be called.
// You can adjust/add/remove import IDs in the array as needed.
$chain_map = array(
'1' => '2',
'2' => '3',
'3' => '4'
);
if ( array_key_exists( $import_id, $chain_map ) ) {
$id = $chain_map[ $import_id ];
$trigger_url = "http://helpful-barracuda.w5.wpsandbox.pro/wp-cron.php?import_key=FReKvO&import_id=" . $id . "&action=trigger";
$trigger_response = wp_remote_get( $trigger_url );
}
}
add_action( 'pmxi_after_xml_import', 'my_run_cron_after_import', 10, 1 );