WordPress at Your Fingertips
function is not described

ActionScheduler_ListTable::recreate_tables() protected WC 1.0

Force the data store schema updates.

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

No Hooks.

Return

null. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->recreate_tables();

Code of ActionScheduler_ListTable::recreate_tables() WC 6.1.1

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