# woocommerce-pos/1.10.21/templates/wp-overnight-invoice.php

WCPOS – Point of Sale (POS) plugin for WooCommerce, version 1.10.21. 33 lines.

- Page: https://pluginprobe.com/plugins/woocommerce-pos/1.10.21/code/templates/wp-overnight-invoice.php
- Raw: https://pluginprobe.com/plugins/woocommerce-pos/1.10.21/raw/templates/wp-overnight-invoice.php
- Modified: 2026-06-09T13:55:26+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/woocommerce-pos/1.10.21/code/templates/wp-overnight-invoice.php#L10-L20`.

```php
<?php
/**
 * WP Overnight invoice receipt template.
 *
 * Renders inline HTML by delegating to PDF Invoices & Packing Slips for WooCommerce.
 *
 * @package WCPOS\WooCommercePOS
 */

// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals -- Template files use short variable names by convention.

if ( ! \defined( 'ABSPATH' ) ) {
	exit;
}

if ( empty( $order ) ) {
	echo esc_html__( 'The WP Overnight invoice document is not available.', 'woocommerce-pos' );
	return;
}

$document = apply_filters( 'woocommerce_pos_wp_overnight_pdf_document', null, 'invoice', $order );

if ( null === $document && \function_exists( 'wcpdf_get_document' ) ) {
	$document = wcpdf_get_document( 'invoice', $order, true );
}

if ( ! $document || ! \is_callable( array( $document, 'get_html' ) ) ) {
	echo esc_html__( 'The WP Overnight invoice document could not be rendered for this order.', 'woocommerce-pos' );
	return;
}

echo $document->get_html(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Trusted HTML generated by the WP Overnight document API.

```
