Action_Scheduler\Migration
Scheduler::run_migration()
The migration callback.
Method of the class: Scheduler{}
No Hooks.
Return
null
. Nothing (null).
Usage
$Scheduler = new Scheduler(); $Scheduler->run_migration();
Scheduler::run_migration() Scheduler::run migration code WC 9.5.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() ); } }