Automattic\WooCommerce\Database\Migrations\CustomOrderTable
PostToOrderTableMigrator::get_meta_column_config()
Get meta data config.
Метод класса: PostToOrderTableMigrator{}
Хуков нет.
Возвращает
\Строку[][]
. Config.
Использование
$PostToOrderTableMigrator = new PostToOrderTableMigrator(); $PostToOrderTableMigrator->get_meta_column_config(): array;
Код PostToOrderTableMigrator::get_meta_column_config() PostToOrderTableMigrator::get meta column config WC 7.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', ), ); }