Description
[wcj_order_date]
shortcode displays date for WooCommerce order.
Args
- order_id
- (optional) The integer ID for an order.
- Default: The current order ID, if exists
- date_format
- (optional) Date format as used in PHP date function.
- Default: Date format as set in current site's WordPress settings
- 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: [wcj_invoice_number]<br /> Invoice Date: [wcj_invoice_date]<br /> Order Number: [wcj_order_number]<br /> Order Date: [wcj_order_date]
Accessible through:
- [wcj_order_date]