Automattic\WooCommerce\Database\Migrations\CustomOrderTable
PostToOrderTableMigrator::get_meta_column_config()
Get meta data config.
Method of the class: PostToOrderTableMigrator{}
No Hooks.
Return
\String[][]
. Config.
Usage
$PostToOrderTableMigrator = new PostToOrderTableMigrator(); $PostToOrderTableMigrator->get_meta_column_config(): array;
PostToOrderTableMigrator::get_meta_column_config() PostToOrderTableMigrator::get meta column config code WC 9.7.1
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', ), ); }