@@ -116,7 +116,8 @@ try {
sendResponse(true, 'Comments imported', [
'step' => $step,
- 'result' => $result
+ 'result' => $result,
+ 'logs' => $importer->getImportLog()
]);
break;
@@ -605,6 +605,10 @@ class WordPressImport {
];
}
+ public function getImportLog() {
+ return $this->importLog;
+ }
+
/**
* Get statistics methods
*/