{lang: ‘hu’}It took a while to figure it out how to get all the comments of an order, but finally I succeeded. So my first try looked like this: function get_all_order_comments($order_id) { $args = array( ‘post_id’ => $order_id, ‘approve’ => ‘approve’, ‘type’ => ” ); return get_comments($args); } Unfortunately it didn’t work, because – as […]
How to get orders’ comments in WooCommerce?
{lang: ‘hu’}It took a while to figure it out how to get all the comments of an order, but finally I succeeded. So my first try looked like this: function get_all_order_comments($order_id) { $args = array( ‘post_id’ => $order_id, ‘approve’ => ‘approve’, ‘type’ => ” ); return get_comments($args); } Unfortunately it didn’t work, because – as […]