Automattic\WooCommerce\Database\Migrations\CustomOrderTable
PostsToOrdersMigrationController::migrate_order()
Migrates an order from the posts table to the custom orders tables.
Method of the class: PostsToOrdersMigrationController{}
No Hooks.
Return
null
. Nothing (null).
Usage
$PostsToOrdersMigrationController = new PostsToOrdersMigrationController(); $PostsToOrdersMigrationController->migrate_order( $order_post_id ): void;
- $order_post_id(int) (required)
- Post ID of the order to migrate.
PostsToOrdersMigrationController::migrate_order() PostsToOrdersMigrationController::migrate order code WC 9.7.1
public function migrate_order( int $order_post_id ): void { $this->migrate_orders( array( $order_post_id ) ); }