ng' ); $return = ''; $total_rows = array_diff_key( $order->get_order_item_totals(), array( 'cart_subtotal' => '', 'payment_method' => '', ) ); foreach ( $total_rows as $total ) { $return .= '
' . esc_html__( 'Note:', 'woocommerce' ) . '
' . '' . wp_kses_post( nl2br( wptexturize( $order->get_customer_note() ) ) ) . '
' . '