WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

Action_Scheduler\Migration

Controller::schedule_migration() public WC 1.0

Set up the background migration process.

Ищем WP-разработчика! Фулл-тайм, удаленка, хорошая зарплата, соц. пакет. Подробности.
Компания Boosta.

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

Хуков нет.

Возвращает

null. Ничего.

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

$Controller = new Controller();
$Controller->schedule_migration();

Код Controller::schedule_migration() WC 5.8.0

public function schedule_migration() {
	$logging_tables = new ActionScheduler_LoggerSchema();
	$store_tables   = new ActionScheduler_StoreSchema();

	/*
	 * In some unusual cases, the expected tables may not have been created. In such cases
	 * we do not schedule a migration as doing so will lead to fatal error conditions.
	 *
	 * In such cases the user will likely visit the Tools > Scheduled Actions screen to
	 * investigate, and will see appropriate messaging (this step also triggers an attempt
	 * to rebuild any missing tables).
	 *
	 * @see https://github.com/woocommerce/action-scheduler/issues/653
	 */
	if (
		ActionScheduler_DataController::is_migration_complete()
		|| $this->migration_scheduler->is_migration_scheduled()
		|| ! $store_tables->tables_exist()
		|| ! $logging_tables->tables_exist()
	) {
		return;
	}

	$this->migration_scheduler->schedule_migration();
}