ActionScheduler_ListTable::recreate_tables()protectedWC 1.0

Force the data store schema updates.

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

Хуков нет.

Возвращает

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

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->recreate_tables();

Код ActionScheduler_ListTable::recreate_tables() WC 8.7.0

protected function recreate_tables() {
	if ( is_a( $this->store, 'ActionScheduler_HybridStore' ) ) {
		$store = $this->store;
	} else {
		$store = new ActionScheduler_HybridStore();
	}
	add_action( 'action_scheduler/created_table', array( $store, 'set_autoincrement' ), 10, 2 );

	$store_schema  = new ActionScheduler_StoreSchema();
	$logger_schema = new ActionScheduler_LoggerSchema();
	$store_schema->register_tables( true );
	$logger_schema->register_tables( true );

	remove_action( 'action_scheduler/created_table', array( $store, 'set_autoincrement' ), 10 );
}