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
- Default:
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:
Invoice Number: Invoice Date: Order Number: Order Date:
Accessible through:
- [wcj_order_number]