Developers

Template overrides, hooks and functions.

Template overrides

Copy a template from the plugin's templates/ folder to your theme, keeping the path:

yourtheme/brainlessitc-pdf-invoices-packing-slips-for-woo/invoice/classic.php
yourtheme/brainlessitc-pdf-invoices-packing-slips-for-woo/invoice/modern.php
yourtheme/brainlessitc-pdf-invoices-packing-slips-for-woo/packing-slip/default.php

Templates receive a prepared $data array. Text values are plain text (escape with esc_html()); keys ending in _html contain WooCommerce price/address HTML (print with wp_kses_post()).

Filters

Actions

Functions

bitcpdf_get_invoice_number( $order );            // '' when no invoice was issued
bitcpdf_get_admin_document_url( 'invoice', array( $order_id ) );

Data

Issued numbers are stored in {prefix}bitcpdf_documents (unique keys on series + number and on document type + order + reference) and counters in {prefix}bitcpdf_sequences. A copy of the invoice number is stored on the order as _bitcpdf_invoice_number. Settings are in the option bitcpdf_settings.