Automattic\WooCommerce\Database\Migrations\CustomOrderTable

PostsToOrdersMigrationController::__construct()publicWC 1.0

PostsToOrdersMigrationController constructor.

Method of the class: PostsToOrdersMigrationController{}

No Hooks.

Return

null. Nothing (null).

Usage

$PostsToOrdersMigrationController = new PostsToOrdersMigrationController();
$PostsToOrdersMigrationController->__construct();

PostsToOrdersMigrationController::__construct() code WC 8.6.1

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();
}