Automattic\WooCommerce\Database\Migrations\CustomOrderTable
PostToOrderAddressTableMigrator::get_core_column_mapping
Get columns config.
Method of the class: PostToOrderAddressTableMigrator{}
No Hooks.
Returns
\String[][]. Config.
Usage
// protected - for code of main (parent) or child class $result = $this->get_core_column_mapping(): array;
PostToOrderAddressTableMigrator::get_core_column_mapping() PostToOrderAddressTableMigrator::get core column mapping code WC 10.4.3
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'",
),
);
}