Automattic\WooCommerce\Database\Migrations\CustomOrderTable

PostToOrderAddressTableMigrator::get_core_column_mapping()protectedWC 1.0

Get columns config.

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

Хуков нет.

Возвращает

\Строку[][]. Config.

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

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

Код PostToOrderAddressTableMigrator::get_core_column_mapping() WC 8.7.0

protected function get_core_column_mapping(): array {
	$type = $this->type;

	return array(
		'ID'   => array(
			'type'        => 'int',
			'destination' => 'order_id',
		),
		'type' => array(
			'type'          => 'string',
			'destination'   => 'address_type',
			'select_clause' => "'$type'",
		),
	);
}