[wcj_current_datetime]

Display current date and time

Description

[wcj_current_datetime] shortcode displays current date and time. For datetime_format check documentation on date and time formatting.

Args

datetime_format
(optional) Date and Time format.

Default: Format as set in Settings > General > Date Format and Time Format, with space between date and time. E.g.: Y/m/d g:i a
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

Examples

[wcj_current_datetime]
Accessible through:
  • [wcj_current_datetime]
Tested on WooCommerce 3.0.5 and WordPress 4.7.4
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.