fbpx

Description

[wcj_invoice_number] shortcode displays number for WooCommerce order invoice. Numbering for invoices is set in PDF Invoicing and Packing Slips module.

Args

invoice_type
(optional) Can be one of these values: `invoice`, `proforma_invoice`, `credit_note` or `packing_slip`.
Default: `invoice`
date_format
(optional) Date format as used in PHP date function.
Default: Date format as set in current site’s WordPress settings
days
(optional) Extra days to add to invoice date. Can be positive or negative. This can be used for displaying Invoice Due Date.
Default: `0`
order_id
(optional) The integer ID for an order.
Default: The current order ID, if exists
before
(optional) Text to place before the content. If content is empty this argument is ignored.
Default: None
after
(optional) Text to place after the content. If content is empty this argument is ignored.
Default: None
visibility
(optional) Make shortcode results visible to everyone (`all`), or to admin only (`admin`).
Default: `all`

Usage Example

Invoice Number:
Accessible through:
  • [wcj_invoice_number]
Tested on WooCommerce 9.4.1 and WordPress 6.7