Skip to content

Commit 81927f9

Browse files
committed
Run Importer manually
1 parent 8ee093d commit 81927f9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

blueprints/gatherpress-save-export-to-server-blueprint.json

+4
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@
9494
"resource": "url",
9595
"url": "https://github-proxy.com/proxy/?repo=humanmade/WordPress-Importer"
9696
}
97+
},
98+
{
99+
"step": "runPHP",
100+
"code": "<?php require '/wordpress/wp-load.php';$path = realpath( '/wordpress/wp-content/gatherpress-demo-data-main/GatherPress-demo-data-2024.xml' );$logger = new WP_Importer_Logger_CLI();$logger->min_level = 'info';$options = array( 'fetch_attachments' => false, 'default_author' => 1,);$importer = new WXR_Importer( $options );$importer->set_logger( $logger );$result = $importer->import( $path );"
97101
}
98102
]
99103
}

0 commit comments

Comments
 (0)