Action_Scheduler\Migration
Scheduler::run_migration
The migration callback.
Method of the class: Scheduler{}
No Hooks.
Returns
null. Nothing (null).
Usage
$Scheduler = new Scheduler(); $Scheduler->run_migration();
Scheduler::run_migration() Scheduler::run migration code WC 10.3.6
public function run_migration() {
$migration_runner = $this->get_migration_runner();
$count = $migration_runner->run( $this->get_batch_size() );
if ( 0 === $count ) {
$this->mark_complete();
} else {
$this->schedule_migration( time() + $this->get_schedule_interval() );
}
}