Skip to content
Docs
Get RestroPress

Action

rpress_import_finished

Updated
On this page

Fires when an import has finished.

Runs from the import step handler once the last batch is processed and the finish summary has been logged.

Parameters#

ParameterTypeDescription
$job_idintImport (job) ID.

Example#

add_action( 'rpress_import_finished', 'my_import_finished', 10, 1 );
function my_import_finished( $job_id ) {
	delete_transient( 'my_menu_cache' );
}

Source#

Fired from:

  • includes/features/importer/class-rpress-importer-engine.php (line 747), in RPress_Importer_Engine::run_step()

See also#

Was this page helpful?