Automattic\WooCommerce\Database\Migrations\CustomOrderTable

PostsToOrdersMigrationController::verify_migrated_orders()publicWC 1.0

Verify whether the given order IDs were migrated properly or not.

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

Хуков нет.

Возвращает

Массив. Array of failed IDs along with columns.

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

$PostsToOrdersMigrationController = new PostsToOrdersMigrationController();
$PostsToOrdersMigrationController->verify_migrated_orders( $order_post_ids ): array;
$order_post_ids(массив) (обязательный)
Order IDs.

Код PostsToOrdersMigrationController::verify_migrated_orders() WC 6.8.0

public function verify_migrated_orders( array $order_post_ids ): array {
	$errors = array();
	foreach ( $this->all_migrators as $migrator ) {
		if ( method_exists( $migrator, 'verify_migrated_data' ) ) {
			$errors = $errors + $migrator->verify_migrated_data( $order_post_ids );
		}
	}
	return $errors;
}