Solusi saya hanya menghapus semua pesanan (Jika Anda pindah dari toko dengan data demo ke situs baru Anda). Anda dapat melakukan ini menggunakan kueri SQL berikut.
DELETE FROM wp_woocommerce_order_itemmeta
DELETE FROM wp_woocommerce_order_items
DELETE FROM wp_comments WHERE comment_type = 'order_note'
DELETE FROM wp_postmeta WHERE post_id IN ( SELECT ID FROM wp_posts WHERE post_type = 'shop_order' )
DELETE FROM wp_posts WHERE post_type = 'shop_order'