WordPress at a glance
function is not described

Action_Scheduler\Migration

LogMigrator::migrate() public WC 1.0

Migrate an action log.

{} It's a method of the class: LogMigrator{}

No Hooks.

Return

Null. Nothing.

Usage

$LogMigrator = new LogMigrator();
$LogMigrator->migrate( $source_action_id, $destination_action_id );
$source_action_id(int) (required)
Source logger object.
$destination_action_id(int) (required)
Destination logger object.

Code of LogMigrator::migrate() WC 5.0.0

<?php
public function migrate( $source_action_id, $destination_action_id ) {
	$logs = $this->source->get_logs( $source_action_id );
	foreach ( $logs as $log ) {
		if ( $log->get_action_id() == $source_action_id ) {
			$this->destination->log( $destination_action_id, $log->get_message(), $log->get_date() );
		}
	}
}