How do i get Order Notes from a Woocommerce Order / WC_Order object?

I can add an order note (private note) with:

$order->add_order_note($info_for_order);

But when i tried to get the values in some page with:

get_comments(['post_id' => $order_id])
// or
$order_object->get_customer_order_notes()

It simply returns an empty array. I googled this and i can’t find the method to do it.

Read more here: How do i get Order Notes from a Woocommerce Order / WC_Order object?

Leave a Reply

Your email address will not be published. Required fields are marked *