awesomemotive / one-click-demo-import

One Click Demo Import plugin
https://www.awesomemotive.com/
195 stars 84 forks source link

Using append_to_frontend_error_messages during "pt-ocdi/after_import" hook #147

Closed wpexplorer closed 6 years ago

wpexplorer commented 6 years ago

Anyway to use append_to_frontend_error_messages during the "pt-ocdi/after_import" hook?

Thanks!!

capuderg commented 6 years ago

Hi,

you can use it like this:

$ocdi = OCDI\OneClickDemoImport::get_instance();

$ocdi->append_to_frontend_error_messages( "this is the error, we want to output on the import page!" );

Take care!