Automattic\WooCommerce\Database\Migrations\CustomOrderTable
PostToOrderTableMigrator::get_core_column_mapping
Get columns config.
Метод класса: PostToOrderTableMigrator{}
Хуков нет.
Возвращает
\Строку[][]. Config.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_core_column_mapping(): array;
Код PostToOrderTableMigrator::get_core_column_mapping() PostToOrderTableMigrator::get core column mapping WC 10.4.3
protected function get_core_column_mapping(): array {
return array(
'ID' => array(
'type' => 'int',
'destination' => 'id',
),
'post_status' => array(
'type' => 'string',
'destination' => 'status',
),
'post_date_gmt' => array(
'type' => 'date',
'destination' => 'date_created_gmt',
),
'post_modified_gmt' => array(
'type' => 'date',
'destination' => 'date_updated_gmt',
),
'post_parent' => array(
'type' => 'int',
'destination' => 'parent_order_id',
),
'post_type' => array(
'type' => 'string',
'destination' => 'type',
),
'post_excerpt' => array(
'type' => 'string',
'destination' => 'customer_note',
),
);
}