Automattic\WooCommerce\Database\Migrations\CustomOrderTable

PostsToOrdersMigrationController::__construct()publicWC 1.0

PostsToOrdersMigrationController constructor.

Метод класса: PostsToOrdersMigrationController{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

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

Код PostsToOrdersMigrationController::__construct() WC 8.7.0

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