[wcj_order_number]

Display order number

Description

[wcj_order_number] shortcode displays WooCommerce order number. If you use Order Numbers module the number will be formatted according the settings. If you need “raw” order number, you should use [wcj_order_id] instead.

Args

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

Shortcode is intended (but not limited) to use with PDF Invoicing and Packing Slips module. Example demonstrates how could invoice header look like:

Accessible through:
  • [wcj_order_number]
Tested on WooCommerce 3.1.1 and WordPress 4.8
Plugin can be downloaded here. If there are any locked fields in the module, you will need to get Booster Plus to unlock them.

Leave a Reply

No comments yet.