Closed Nanosergio closed 4 years ago
I never used this plugin but you might use the wrong hook.
Try to use pt-ocdi/after_all_import_execution
.
Found in this file one-click-demo-import/inc/OneClickDemoImport.php
line 371
Lenny, thank you very much for your message but the result is the same. A notification block appears displaying the destination page (home).
Hi @Nanosergio,
sorry for the late reply.
You could hook into the JS/jQuery custom event ocdiImportComplete
that we trigger at the end of the import AJAX call. You could use JS redirect when this custom event is triggered. So the solution would be totally JS based.
Take care!
Hello! Thanks for your great plugin! I want to redirect the user to their main page when the plugin finishes importing to visualize the result. I used the hook
pt-ocdi/after_import
to redirectbut it displays a notice block with the landing page.
How to redirect the users after import?