Automattic\WooCommerce\Database\Migrations\CustomOrderTable

PostToOrderTableMigrator::get_meta_column_config()publicWC 1.0

Get meta data config.

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

Хуков нет.

Возвращает

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

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

$PostToOrderTableMigrator = new PostToOrderTableMigrator();
$PostToOrderTableMigrator->get_meta_column_config(): array;

Код PostToOrderTableMigrator::get_meta_column_config() WC 6.7.0

public function get_meta_column_config(): array {
	return array(
		'_order_currency'       => array(
			'type'        => 'string',
			'destination' => 'currency',
		),
		'_order_tax'            => array(
			'type'        => 'decimal',
			'destination' => 'tax_amount',
		),
		'_order_total'          => array(
			'type'        => 'decimal',
			'destination' => 'total_amount',
		),
		'_customer_user'        => array(
			'type'        => 'int',
			'destination' => 'customer_id',
		),
		'_billing_email'        => array(
			'type'        => 'string',
			'destination' => 'billing_email',
		),
		'_payment_method'       => array(
			'type'        => 'string',
			'destination' => 'payment_method',
		),
		'_payment_method_title' => array(
			'type'        => 'string',
			'destination' => 'payment_method_title',
		),
		'_customer_ip_address'  => array(
			'type'        => 'string',
			'destination' => 'ip_address',
		),
		'_customer_user_agent'  => array(
			'type'        => 'string',
			'destination' => 'user_agent',
		),
		'_transaction_id'       => array(
			'type'        => 'string',
			'destination' => 'transaction_id',
		),
	);
}