Automattic\WooCommerce\Database\Migrations\CustomOrderTable

PostsToOrdersMigrationController::__construct()publicWC 1.0

PostsToOrdersMigrationController constructor.

{} It's a method of the class: PostsToOrdersMigrationController{}

No Hooks.

Return

null. Nothing.

Usage

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

Code of PostsToOrdersMigrationController::__construct() WC 7.1.0

public function __construct() {

	$this->all_migrators   = array();
	$this->all_migrators[] = new PostToOrderTableMigrator();
	$this->all_migrators[] = new PostToOrderAddressTableMigrator( 'billing' );
	$this->all_migrators[] = new PostToOrderAddressTableMigrator( 'shipping' );
	$this->all_migrators[] = new PostToOrderOpTableMigrator();
	$this->all_migrators[] = new PostMetaToOrderMetaMigrator( $this->get_migrated_meta_keys() );
	$this->error_logger    = wc_get_logger();
}