Automattic\WooCommerce\Database\Migrations\CustomOrderTable

PostToOrderTableMigrator::get_core_column_mapping()protectedWC 1.0

Get columns config.

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

Хуков нет.

Возвращает

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

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

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

Код PostToOrderTableMigrator::get_core_column_mapping() WC 8.7.0

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