I would like to show previously ordered items under Related Orders in WooCommerce.
I found this code by @loictheaztec that almost do what I am looking for : https://wordpress.stackexchange.com/questions/348105/display-order-items-names-in-woocommerce-admin-orders-list
But insted of the general Order list I would like to have in added under Related Orders at the buttom of each Order page.
I tried to modify the code but can’t get it to work
