Action_Scheduler\Migration

Scheduler::run_migration()publicWC 1.0

The migration callback.

Метод класса: Scheduler{}

Хуков нет.

Возвращает

null. Ничего (null).

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

$Scheduler = new Scheduler();
$Scheduler->run_migration();

Код Scheduler::run_migration() WC 8.9.0

public function run_migration() {
	$migration_runner = $this->get_migration_runner();
	$count            = $migration_runner->run( $this->get_batch_size() );

	if ( $count === 0 ) {
		$this->mark_complete();
	} else {
		$this->schedule_migration( time() + $this->get_schedule_interval() );
	}
}