<?php
// Support to trigger after POS order is updated.

add_action('wc_pos_order_updated', function($order_id) {
  $order = wc_get_order($order_id);
  
  if ($order) {
    // Implement your custom logic here.
    // This can range from sending notification emails,
    // updating order metadata, making API calls,
    // or any other action required by your plugin or theme.
  }
});