Display order date


[wcj_order_date] shortcode displays date for WooCommerce order.


(optional) The integer ID for an order.

Default: The current order ID, if exists
(optional) Date format as used in PHP date function.

Default: Date format as set in current site’s WordPress settings
(optional) Text to place before the content. If content is empty this argument is ignored.

Default: None
(optional) Text to place after the content. If content is empty this argument is ignored.

Default: None
(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:

Invoice Number: [wcj_invoice_number]
Invoice Date: [wcj_invoice_date]
Order Number: [wcj_order_number]
Order Date: [wcj_order_date]
Accessible through:
  • [wcj_order_date]
Tested on WooCommerce 4.1.1 and WordPress 5.4.1
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



  1. arifhazwan February 13, 2018 at 9:31 pm #

    Hi, I am having a problem to display the order_date correctly using my local timezone.
    I notice there is a differences between [wcj_order_date] and [wcj_invoice_date].

    I need the date from [wcj_order_date] to be the same as [wcj_invoice_date]
    How can I solve this?

    Thank you.

    Reply to thread

  2. Simon May 11, 2016 at 3:29 am #

    how can I escape the dashes using [wcj_order_date]? I want to make it look like YmD instead of Y-m-D

    Reply to thread

    • Booster Support Team May 11, 2016 at 11:04 am #

      Hi Simon,

      To change date format, you need to add `date_format` attribute. E.g.:
      `[wcj_order_date date_format="YmD"]`

      Best regards,

      Booster Support Team