Add the Shop Manager username to Woocommerce Admin Order notes
I have a problem right now. I have a plugin that allows me to quickly change the status of my orders from the admin order list. Unfortunately the name of the shop manager is not transmitted. I think I've found the right code, but I don't know exactly how to do it. Would be grateful for any help. public function save_comment($order, $status_comment) { $order->add_order_note("[[" . wc_get_order_status_name($order->post_status) . "|" . $status_comment . "]]"); } Right now it looks like this : I'd like to see which user changed the status as shown in this picture: To add the username of the shop