You can get order information using the following code:
add_action('woocommerce_checkout_order_processed', 'send_order_fax');
function send_order_fax($order_id) {
$order = new WC_Order( $order_id );
$items = $order->get_items();
print_r($items);
die();
}
source
share