Automattic\WooCommerce\Database\Migrations\CustomOrderTable
PostsToOrdersMigrationController::__construct
PostsToOrdersMigrationController constructor.
Method of the class: PostsToOrdersMigrationController{}
No Hooks.
Returns
null. Nothing (null).
Usage
$PostsToOrdersMigrationController = new PostsToOrdersMigrationController(); $PostsToOrdersMigrationController->__construct();
PostsToOrdersMigrationController::__construct() PostsToOrdersMigrationController:: construct code WC 10.4.3
public function __construct() {
$this->all_migrators = array();
$this->all_migrators['order'] = new PostToOrderTableMigrator();
$this->all_migrators['order_address_billing'] = new PostToOrderAddressTableMigrator( 'billing' );
$this->all_migrators['order_address_shipping'] = new PostToOrderAddressTableMigrator( 'shipping' );
$this->all_migrators['order_operational_data'] = new PostToOrderOpTableMigrator();
$this->all_migrators['order_meta'] = new PostMetaToOrderMetaMigrator( $this->get_migrated_meta_keys() );
$this->error_logger = wc_get_logger();
}