Automattic\WooCommerce\Database\Migrations\CustomOrderTable

PostsToOrdersMigrationController::migrate_order()publicWC 1.0

Migrates an order from the posts table to the custom orders tables.

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

Хуков нет.

Возвращает

null. Ничего.

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

$PostsToOrdersMigrationController = new PostsToOrdersMigrationController();
$PostsToOrdersMigrationController->migrate_order( $order_post_id ): void;
$order_post_id(int) (обязательный)
Post ID of the order to migrate.

Код PostsToOrdersMigrationController::migrate_order() WC 6.8.0

public function migrate_order( int $order_post_id ): void {
	$this->migrate_orders( array( $order_post_id ) );
}