Skip to content
Docs
Get RestroPress

Action

rpress_import_undone

Updated
On this page

Fires when an import has been undone.

Runs once the undo process has completed and its summary has been logged.

Parameters#

ParameterTypeDescription
$job_idintImport (job) ID.

Example#

add_action( 'rpress_import_undone', 'my_import_undone', 10, 1 );
function my_import_undone( $job_id ) {
	delete_transient( 'my_menu_cache' );
}

Source#

Fired from:

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

See also#

Was this page helpful?