Automattic\WooCommerce\Database\Migrations\CustomOrderTable
PostToOrderOpTableMigrator::get_meta_column_config()
Get meta data config.
Метод класса: PostToOrderOpTableMigrator{}
Хуков нет.
Возвращает
\Строку[][]
. Config.
Использование
$PostToOrderOpTableMigrator = new PostToOrderOpTableMigrator(); $PostToOrderOpTableMigrator->get_meta_column_config(): array;
Код PostToOrderOpTableMigrator::get_meta_column_config() PostToOrderOpTableMigrator::get meta column config WC 9.3.1
public function get_meta_column_config(): array { return array( '_created_via' => array( 'type' => 'string', 'destination' => 'created_via', ), '_order_version' => array( 'type' => 'string', 'destination' => 'woocommerce_version', ), '_prices_include_tax' => array( 'type' => 'bool', 'destination' => 'prices_include_tax', ), '_recorded_coupon_usage_counts' => array( 'type' => 'bool', 'destination' => 'coupon_usages_are_counted', ), '_download_permissions_granted' => array( 'type' => 'bool', 'destination' => 'download_permission_granted', ), '_cart_hash' => array( 'type' => 'string', 'destination' => 'cart_hash', ), '_new_order_email_sent' => array( 'type' => 'bool', 'destination' => 'new_order_email_sent', ), '_order_key' => array( 'type' => 'string', 'destination' => 'order_key', ), '_order_stock_reduced' => array( 'type' => 'bool', 'destination' => 'order_stock_reduced', ), '_date_paid' => array( 'type' => 'date_epoch', 'destination' => 'date_paid_gmt', ), '_date_completed' => array( 'type' => 'date_epoch', 'destination' => 'date_completed_gmt', ), '_order_shipping_tax' => array( 'type' => 'decimal', 'destination' => 'shipping_tax_amount', ), '_order_shipping' => array( 'type' => 'decimal', 'destination' => 'shipping_total_amount', ), '_cart_discount_tax' => array( 'type' => 'decimal', 'destination' => 'discount_tax_amount', ), '_cart_discount' => array( 'type' => 'decimal', 'destination' => 'discount_total_amount', ), '_recorded_sales' => array( 'type' => 'bool', 'destination' => 'recorded_sales', ), ); }