WordPress at Your Fingertips
function is not described

Action_Scheduler\Migration

Scheduler::run_migration() public WC 1.0

The migration callback.

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of Scheduler::run_migration() WC 6.1.1

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() );
	}
}