Skip to content

Commit

Permalink
Run Importer manually
Browse files Browse the repository at this point in the history
  • Loading branch information
carstingaxion committed Jun 12, 2024
1 parent 8ee093d commit 81927f9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions blueprints/gatherpress-save-export-to-server-blueprint.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@
"resource": "url",
"url": "https://github-proxy.com/proxy/?repo=humanmade/WordPress-Importer"
}
},
{
"step": "runPHP",
"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 );"
}
]
}

0 comments on commit 81927f9

Please sign in to comment.