Automattic\WooCommerce\Database\Migrations\CustomOrderTable
PostToOrderTableMigrator::get_core_column_mapping()
Get columns config.
Method of the class: PostToOrderTableMigrator{}
No Hooks.
Return
\String[][]
. Config.
Usage
// protected - for code of main (parent) or child class $result = $this->get_core_column_mapping(): array;
PostToOrderTableMigrator::get_core_column_mapping() PostToOrderTableMigrator::get core column mapping code WC 9.7.1
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', ), ); }