WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Получай пассивный доход от сайта с помощью браузерных PUSH уведомлений
функция не описана

Action_Scheduler\Migration

Runner::migrate_actions() public WC 1.0

Migration a batch of actions.

{} Это метод класса: Runner{}

Возвращает

null. Ничего.

Использование

$Runner = new Runner();
$Runner->migrate_actions( $action_ids );
$action_ids(массив) (обязательный)
List of action IDs to migrate.

Код Runner::migrate_actions() WC 5.2.2

<?php
public function migrate_actions( array $action_ids ) {
	do_action( 'action_scheduler/migration_batch_starting', $action_ids );

	\ActionScheduler::logger()->unhook_stored_action();
	$this->destination_logger->unhook_stored_action();

	foreach ( $action_ids as $source_action_id ) {
		$destination_action_id = $this->action_migrator->migrate( $source_action_id );
		if ( $destination_action_id ) {
			$this->destination_logger->log( $destination_action_id, sprintf(
				/* translators: 1: source action ID 2: source store class 3: destination action ID 4: destination store class */
				__( 'Migrated action with ID %1$d in %2$s to ID %3$d in %4$s', 'woocommerce' ),
				$source_action_id,
				get_class( $this->source_store ),
				$destination_action_id,
				get_class( $this->destination_store )
			) );
		}

		if ( $this->progress_bar ) {
			$this->progress_bar->tick();
		}
	}

	if ( $this->progress_bar ) {
		$this->progress_bar->finish();
	}

	\ActionScheduler::logger()->hook_stored_action();

	do_action( 'action_scheduler/migration_batch_complete', $action_ids );
}